예제 #1
0
        private void mnuChangeConfigInfo_Click(object sender, EventArgs e)
        {
            J_Var.J_pLoginStatus = 1;

            if (J_Var.J_pDatabaseType == J_DatabaseType.MsAccess)
            {
                if (J_Var.J_pApplicationType == J_ApplicationType.StandAlone_SingleMachine)
                {
                    SysServerInfoLocal frm = new SysServerInfoLocal();
                    frm.ShowDialog();
                    frm.Dispose();
                }
                else if (J_Var.J_pApplicationType == J_ApplicationType.StandAlone_SingleMachineBrowser)
                {
                    SysServerInfoLocalBrowser frm = new SysServerInfoLocalBrowser();
                    frm.ShowDialog();
                    frm.Dispose();
                }
            }
            else
            {
                SysServerInfoNetwork frm = new SysServerInfoNetwork();
                frm.ShowDialog();
                frm.Dispose();
            }
        }
예제 #2
0
 private void PointerMove_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (Convert.ToInt32(e.KeyChar) == 13)
     {
         SendKeys.Send("{tab}");
     }
     if (Convert.ToInt64(e.KeyChar) == 27)
     {
         BtnCancel_Click(sender, e);
     }
     if (Convert.ToInt32(e.KeyChar) == 12)
     {
         //----------------------------------------------------------
         this.Close();
         this.Dispose();
         //----------------------------------------------------------
         SysServerInfoLocal frm = new SysServerInfoLocal();
         frm.ShowDialog();
         frm.Dispose();
         //----------------------------------------------------------
     }
 }