private void Disconnect(object sender, NavElementEventArgs e) { serverSocket.Disconnect(sender, e); serverSocket.UpdateStatus("Shut down", Status, e); serverSocket.UpdateLog("Server shut down", log_box, e); isInit = false; }
private void navButtonSettings_ElementClick(object sender, NavElementEventArgs e) { //Modules.SettingsUC settingsUC = new Modules.SettingsUC(allowTransition); //DialogResult result = FlyoutDialog.Show(this, settingsUC); //if(result == System.Windows.Forms.DialogResult.OK) { // allowTransition = settingsUC.checkEdit1.Checked; //} }
void btnClear_ElementClick(object sender, NavElementEventArgs e) { if (dataEditPage != null) { dataEditPage.Clear(); this.Text += "—添加"; } }
private void navButtonSettings_ElementClick(object sender, NavElementEventArgs e) { var settingsUC = new SettingsUC(allowTransition); var result = FlyoutDialog.Show(this, settingsUC); if (result == DialogResult.OK) { allowTransition = settingsUC.checkEdit1.Checked; } }
private void navCbx_ElementClick(object sender, NavElementEventArgs e) { try { if (menuPopup.Items.Count <= 0) { return; } menuPopup.Show(MousePosition); } catch (Exception ex) { MsgBox.ShowException(ex, this); } }
//protected override void BindEvents() //{ // //if (_designEvents.Count <= 0) return; // //foreach(EventAction ea in _designEvents.Values) // //{ // // if (ea.Actions.Count <= 0) continue; // // //绑定执行事件 // // switch(ea.ActType) // // { // // case ActionType.atSysFixedEvent: // // break; // // case ActionType.atUserToolEvent: // // break; // // //case ActionType.atSysToolEvent://该类型不需要绑定 // // // break; // // default: // // break; // // } // //} //} private void DoUserToolEvent_NavElement(object sender, NavElementEventArgs e) { NavElement ne = (sender as NavElement); if (ne == null) { return; } //没有对应的事件配置 if (_designEvents.ContainsKey(ne.Caption) == false) { return; } EventActionReleation ea = _designEvents[ne.Caption]; DoActions(ea, sender); }
void btnSave_ElementClick(object sender, NavElementEventArgs e) { try { this.Cursor = System.Windows.Forms.Cursors.WaitCursor; if (dataEditPage != null) { this.Text = mainMenu.Caption; if (dataEditPage.Save()) { clientFactory.DataPageRefresh(mainMenu.Name, string.Empty); CommonServices.ErrorTrace.SetSuccessfullyInfo(this.FindForm(), "保存成功"); } } } catch (Exception ex) { CommonServices.ErrorTrace.SetErrorInfo(this.FindForm(), ex.Message); } finally { this.Cursor = System.Windows.Forms.Cursors.Default; } }
void navButtonClose_ElementClick(object sender, NavElementEventArgs e) { Close(); }
private void NavButtonClose_ElementClick(object sender, NavElementEventArgs e) { View.Close(); }
private void navAddressBook_ElementClick(object sender, NavElementEventArgs e) { xtraTabControl1.SelectedTabPageIndex = 1; navGroups.Appearance.BackColor = Color.Transparent; navGroups.Appearance.ForeColor = Color.White; navNavigatorSetup.Appearance.BackColor = Color.Transparent; navNavigatorSetup.Appearance.ForeColor = Color.White; navEmailNavigator.Appearance.BackColor = Color.Transparent; navEmailNavigator.Appearance.ForeColor = Color.White; navHome.Appearance.BackColor = Color.Transparent; navHome.Appearance.ForeColor = Color.White; navAddressBook.Appearance.BackColor = Color.White; navAddressBook.Appearance.ForeColor = Color.Black; FormMode = LoadMode; SetFormMode("AddressBook"); ClearFormValues(); }
private void navGroups_ElementClick(object sender, NavElementEventArgs e) { xtraTabControl1.SelectedTabPageIndex = 2; navAddressBook.Appearance.BackColor = Color.Transparent; navAddressBook.Appearance.ForeColor = Color.White; navNavigatorSetup.Appearance.BackColor = Color.Transparent; navNavigatorSetup.Appearance.ForeColor = Color.White; navEmailNavigator.Appearance.BackColor = Color.Transparent; navEmailNavigator.Appearance.ForeColor = Color.White; navHome.Appearance.BackColor = Color.Transparent; navHome.Appearance.ForeColor = Color.White; navGroups.Appearance.BackColor = Color.White; navGroups.Appearance.ForeColor = Color.Black; FormMode = LoadMode; SetFormMode("GroupManager"); btnGroupsSave.Enabled = false; btnGroupsCancel.Enabled = false; lbl.Visible = false; btnShowEmails.Visible = false; lbl.Text = "Choose Group"; cmbManagerEmailGroupd.Visible = true; cmbManagerEmailGroupd.DataSource = null; }
private void NavButtonMin_ElementClick(object sender, NavElementEventArgs e) { View.WindowState = FormWindowState.Minimized; }
private void navResetPass_ElementClick(object sender, NavElementEventArgs e) { FormBehavior.GenerateForm(new UcResetPass(), "Thông Tin Người Dùng", this); }
private void navButton3_ElementClick(object sender, NavElementEventArgs e) { Duongtron fr = new Duongtron(); fr.ShowDialog(); }
private void navButton5_ElementClick(object sender, NavElementEventArgs e) { Phepbienhinh fr = new Phepbienhinh(); fr.ShowDialog(); }
private void navButtonClose_ElementClick(object sender, NavElementEventArgs e) { var lg = new Login(viewModel); lg.ShowDialog(); }
private void tileNavItem_pw_ElementClick(object sender, NavElementEventArgs e) { MyForm.More.StaffManage.PWForm pWForm = new MyForm.More.StaffManage.PWForm(1); pWForm.StartPosition = FormStartPosition.CenterScreen; pWForm.ShowDialog(); }
private void tileNavItem_print_ElementClick(object sender, NavElementEventArgs e) { MyEvent(4); }
private void navExit_ElementClick(object sender, NavElementEventArgs e) { Application.Exit(); }
void navButtonHelp_ElementClick(object sender, NavElementEventArgs e) { DevExpress.Utils.About.AboutHelper.Show(DevExpress.Utils.About.ProductKind.DXperienceWin, new DevExpress.Utils.About.ProductStringInfo("Hybrid App", "WinForm Controls")); }
private void navNavigatorSetup_ElementClick(object sender, NavElementEventArgs e) { xtraTabControl1.SelectedTabPageIndex = 3; navGroups.Appearance.BackColor = Color.Transparent; navGroups.Appearance.ForeColor = Color.White; navAddressBook.Appearance.BackColor = Color.Transparent; navAddressBook.Appearance.ForeColor = Color.White; navEmailNavigator.Appearance.BackColor = Color.Transparent; navEmailNavigator.Appearance.ForeColor = Color.White; navHome.Appearance.BackColor = Color.Transparent; navHome.Appearance.ForeColor = Color.White; navNavigatorSetup.Appearance.BackColor = Color.White; navNavigatorSetup.Appearance.ForeColor = Color.Black; }
private void navButtonHelp_ElementClick(object sender, NavElementEventArgs e) { var ab = new AboutForm(); ab.ShowDialog(); }
private void bt_ElementClick(object sender, NavElementEventArgs e) { Duongthang fr = new Duongthang(); fr.ShowDialog(); }
private void NavButtonHome_ElementClick(object sender, NavElementEventArgs e) { HomeClick?.Invoke(); }
private void navButton4_ElementClick(object sender, NavElementEventArgs e) { DuongElip fr = new DuongElip(); fr.ShowDialog(); }