private void button_signin_Click(object sender, EventArgs e) { #region Null Checking if (string.IsNullOrWhiteSpace(textBox_signin_username.Text) || string.IsNullOrWhiteSpace(textBox_pwd.Text)) { MessageBox.Show("Vui lòng điền đầy đủ thông tin", "Thông báo!"); return; } #endregion FirebaseResponse res = client.Get(@"Users/" + getUsername()); User ResUser = res.ResultAs <User>(); User CurUser = new User() { username = getUsername(), pwd = provider.hash_password(textBox_pwd.Text) }; if (User.IsEqual(ResUser, CurUser)) { this.Hide(); FormRoom fr = new FormRoom(this); fr.ShowDialog(); this.Show(); this.textBox_pwd.Clear(); } else { MessageBox.Show("Đăng nhập thất bại"); } }
public FormBill(FormRoom frm) { InitializeComponent(); this.fr = frm; }
public FormCheckIn(FormRoom frm) { InitializeComponent(); this.fr = frm; }
public FormReservation(FormRoom frm) { InitializeComponent(); this.fr = frm; }