本文整理汇总了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;
}