Exemplo n.º 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();
            }
        }
        private void Control_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (Convert.ToInt64(e.KeyChar) == 13)
            {
                SendKeys.Send("{tab}");
            }
            if (Convert.ToInt64(e.KeyChar) == 27)
            {
                BtnCancel_Click(sender, e);
            }

            if (J_Var.J_pDatabaseType == J_DatabaseType.SqlServer)
            {
                if (Convert.ToInt32(e.KeyChar) == 14)
                {
                    this.Close();
                    this.Dispose();

                    SysServerInfoNetwork frm = new SysServerInfoNetwork();
                    frm.ShowDialog();
                    frm.Dispose();
                }
            }
        }