本文整理匯總了C#中System.Windows.Forms.Menu.ToString方法的典型用法代碼示例。如果您正苦於以下問題:C# Menu.ToString方法的具體用法?C# Menu.ToString怎麽用?C# Menu.ToString使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Windows.Forms.Menu
的用法示例。
在下文中一共展示了Menu.ToString方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: ParametrosDelSistema
public ParametrosDelSistema(SqlConnection miConex, Menu menu)
{
InitializeComponent();
miConexion = miConex;
miMenu = menu;
MessageBox.Show(miMenu.ToString());
}
示例2: updateTitle
public void updateTitle(Menu menuname, Bitmap icon)
{
string titlename = "";
switch (menuname){
case Menu.POS:
titlename = "Point of Sale";
break;
case Menu.AccountSettings:
titlename = "Account Settings";
break;
case Menu.AuditTrail:
titlename = "Audit Trail";
break;
case Menu.LoginTrail:
titlename = "Login Trail";
break;
case Menu.Login:
titlename = "EXOGEN";
break;
case Menu.Home:
titlename = "Dashboard";
break;
case Menu.Sales:
titlename = "Sales Report";
break;
case Menu.User:
titlename = "User Management";
break;
case Menu.Client:
titlename = "Customer Information";
break;
case Menu.Orders:
titlename = "Purchase Order";
break;
case Menu.Stock_Control:
titlename = "Stock Control";
break;
case Menu.System_Operation:
titlename = "System Operation";
break;
default:
titlename = menuname.ToString();
break;
}
setTitle = titlename;
if (icon != null)
setImage = icon;
}