示例#1
0
文件: FrmMain.cs 项目: chrgu000/DEMO
        private void FrmMain_Load(object sender, EventArgs e)
        {
            Frm登录        f登陆 = new Frm登录();
            DialogResult d   = f登陆.ShowDialog();

            if (d != DialogResult.Yes)
            {
                MessageBox.Show("登陆失败");
                this.Close();
            }
        }
示例#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();
            }
        }