示例#1
0
 private void ribbon_ItemClick(object sender, ItemClickEventArgs e)
 {
     if (e.Item.Name == CONSTANTS.MENU_NAME_LOGOUT)
     {
         if (frmConfirm.ShowConfirm(
                 ((IMain)this).Language.LogoutTitle,
                 ((IMain)this).Language.LogoutConfirm,
                 this))
         {
             barButtonItem1.Caption = "";
             MainProcess.LogoutFromSystem(true);
         }
     }
     else
     {
         MainProcess.ExecuteMenu(e.Item.Name, e.Item.Tag as RibbonItemInfo);
     }
 }
示例#2
0
 private void mainBar_ItemClick(object sender, ItemClickEventArgs e)
 {
     MainProcess.ExecuteMenu(e.Item.Name, e.Item.Tag as MenuItemInfo);
 }
示例#3
0
 private void barButtonItem4_ItemClick(object sender, ItemClickEventArgs e)
 {
     MainProcess.ExecuteMenu("MNU_EXIT");
 }