示例#1
0
        private void btSignOut_Click(object sender, EventArgs e)
        {
            this.Close();
            FrmAdminZjm zjm = new FrmAdminZjm();

            zjm.Show();
        }
示例#2
0
 private void butLogin_Click(object sender, EventArgs e)
 {
     if (Login(this.textUserName.Text, this.textPwd.Text))
     {
         FrmAdminZjm adminzjm = new FrmAdminZjm();
         this.Close();
         adminzjm.Show();
     }
     else
     {
         MessageBox.Show("账号没有权限或密码错误", "登录失败", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }