Beispiel #1
0
        private void FrmMain_Load(object sender, EventArgs e)
        {
            Frm登录        f登陆 = new Frm登录();
            DialogResult d   = f登陆.ShowDialog();

            if (d != DialogResult.Yes)
            {
                MessageBox.Show("登陆失败");
                this.Close();
            }
        }
Beispiel #2
0
        private void FrmMain_Load(object sender, EventArgs e)
        {
            this.Text = MobileBaseDLL.ClsBaseDataInfo.sConnServer;

            Frm登录        f登陆 = new Frm登录();
            DialogResult d   = f登陆.ShowDialog();

            if (d != DialogResult.Yes)
            {
                MessageBox.Show("登陆失败");
                this.Close();
            }
        }