private void btnSignin_Click(object sender, EventArgs e) { if (txtUserName.Text == "" || txtPassWord.Text == "") { MessageBox.Show("Vui long nhap thong tin", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Warning); } else { UserLoginSingleton userlogin = TaiKhoanDTOSingleton.SignIn(txtUserName.Text, txtPassWord.Text); if (userlogin != null) { Table_Form table = new Table_Form(); table.userlogin = userlogin; this.Hide(); table.ShowDialog(); this.Close(); } else { MessageBox.Show("Đăng nhập thất bại", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } }
private void getUserLoginForPOSUserControl() { this.pos1.userlogin = userlogin; }