Exemple #1
0
 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;
 }
Exemple #2
0
 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;
     //}
 }
Exemple #3
0
 void btnClear_ElementClick(object sender, NavElementEventArgs e)
 {
     if (dataEditPage != null)
     {
         dataEditPage.Clear();
         this.Text += "—添加";
     }
 }
Exemple #4
0
        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);
        }
Exemple #7
0
 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;
     }
 }
Exemple #8
0
 void navButtonClose_ElementClick(object sender, NavElementEventArgs e)
 {
     Close();
 }
Exemple #9
0
 private void NavButtonClose_ElementClick(object sender, NavElementEventArgs e)
 {
     View.Close();
 }
Exemple #10
0
 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();
 }
Exemple #11
0
 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;
 }
Exemple #12
0
 private void NavButtonMin_ElementClick(object sender, NavElementEventArgs e)
 {
     View.WindowState = FormWindowState.Minimized;
 }
Exemple #13
0
 private void navResetPass_ElementClick(object sender, NavElementEventArgs e)
 {
     FormBehavior.GenerateForm(new UcResetPass(), "Thông Tin Người Dùng", this);
 }
Exemple #14
0
        private void navButton3_ElementClick(object sender, NavElementEventArgs e)
        {
            Duongtron fr = new Duongtron();

            fr.ShowDialog();
        }
Exemple #15
0
        private void navButton5_ElementClick(object sender, NavElementEventArgs e)
        {
            Phepbienhinh fr = new Phepbienhinh();

            fr.ShowDialog();
        }
Exemple #16
0
 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;
     //}
 }
Exemple #17
0
        private void navButtonClose_ElementClick(object sender, NavElementEventArgs e)
        {
            var lg = new Login(viewModel);

            lg.ShowDialog();
        }
Exemple #18
0
 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();
 }
Exemple #19
0
 private void tileNavItem_print_ElementClick(object sender, NavElementEventArgs e)
 {
     MyEvent(4);
 }
Exemple #20
0
 private void navExit_ElementClick(object sender, NavElementEventArgs e)
 {
     Application.Exit();
 }
Exemple #21
0
 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"));
 }
Exemple #22
0
 void navButtonClose_ElementClick(object sender, NavElementEventArgs e) {
     Close();
 }
Exemple #23
0
 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;
 }
Exemple #24
0
 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"));
 }
Exemple #25
0
        private void navButtonHelp_ElementClick(object sender, NavElementEventArgs e)
        {
            var ab = new AboutForm();

            ab.ShowDialog();
        }
Exemple #26
0
        private void bt_ElementClick(object sender, NavElementEventArgs e)
        {
            Duongthang fr = new Duongthang();

            fr.ShowDialog();
        }
Exemple #27
0
 private void NavButtonHome_ElementClick(object sender, NavElementEventArgs e)
 {
     HomeClick?.Invoke();
 }
Exemple #28
0
        private void navButton4_ElementClick(object sender, NavElementEventArgs e)
        {
            DuongElip fr = new DuongElip();

            fr.ShowDialog();
        }
Exemple #29
0
 private void NavButtonMin_ElementClick(object sender, NavElementEventArgs e)
 {
     View.WindowState = FormWindowState.Minimized;
 }
Exemple #30
0
 private void NavButtonClose_ElementClick(object sender, NavElementEventArgs e)
 {
     View.Close();
 }
Exemple #31
0
 private void NavButtonHome_ElementClick(object sender, NavElementEventArgs e)
 {
     HomeClick?.Invoke();
 }