private void FormLogin_BtOk(object sender, EventArgs e) { AHUsers usr = new AHUsers() { PhoneNum = tb_Phone.Value.ToString(), Password = tb_Code.Value.ToString() }; string msg = string.Empty; if (!UserBLL.Instance.Login(usr, ref msg)) { ZwMessageBox.ShowMsg(msg); } this.DialogResult = System.Windows.Forms.DialogResult.OK; }
public bool Login(AHUsers user, ref string msg) { return(true); }