private void btnLogin_Click(object sender, EventArgs e) { string username = txbLogin.Text; string password = txbPassword.Text; if (Login(username, password)) { Account loginAccount = AccountDAO.Instance.GetAccountByUserName(username); fMain f = new fMain(loginAccount); this.Hide(); f.ShowDialog(); this.Show(); } else { MessageBox.Show("Bạn nhập sai tên tài khoản hoặc mật khẩu!"); } }
public fHoadon(fMain f) { InitializeComponent(); this.f = f; }