Exemple #1
0
        private void ButtonAccountPage_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Cursor = Cursors.WaitCursor;
            FormAccount formAccount = new FormAccount();

            {
                formAccount.ShowDialog();
            }
            Cursor = Cursors.Default;
        }
Exemple #2
0
 private void ButtonAddAccount_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     Cursor = Cursors.WaitCursor;
     using (FormAccount formAccount = new FormAccount(controlEmployeeManager.GetFocusedEmployee()))
     {
         Global.isExecute = false;
         formAccount.ShowDialog();
         if (Global.isExecute)
         {
             controlEmployeeManager.LoadEmployee();
         }
     }
     Cursor = Cursors.Default;
 }