示例#1
0
        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!");
            }
        }
示例#2
0
 public fHoadon(fMain f)
 {
     InitializeComponent();
     this.f = f;
 }