private void ButtonAccountPage_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { Cursor = Cursors.WaitCursor; FormAccount formAccount = new FormAccount(); { formAccount.ShowDialog(); } Cursor = Cursors.Default; }
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; }