private void btn_Login_Click(object sender, EventArgs e) { UserID = txt_User.Text; string pwd = txt_PWD.Text; int res = UserMng.Login(UserID, pwd, out UserName, out UserGroup); if (res == 0) { this.Hide(); Frm_Main frm = new Frm_Main(this); frm.Show(); //this.Close(); } else { MessageBox.Show("用户名密码错误"); } }
private void Testbed_MouseDoubleClick(object sender, MouseEventArgs e) { Frm_Main fm = new Frm_Main(); fm.Show(); }