Exemple #1
0
        private void btnlogin_Click(object sender, EventArgs e)
        {
            string userName = txbUserName.Text;
            string passWord = txbPassWord.Text;

            if (Login(userName, passWord))
            {
                fTableManager f = new fTableManager();
                this.Hide();
                f.ShowDialog();
                this.Show();
            }
            else
            {
                MessageBox.Show("Sai tên tài khoản hoặc mật khẩu!");
            }
        }
Exemple #2
0
        private void bntLogin_Click(object sender, EventArgs e)
        {
            string username  = txtUser.Text;
            string passwordd = txtPassword.Text;

            if (login(username, passwordd))
            {
                fTableManager f = new fTableManager();
                this.Hide();
                f.ShowDialog();
                this.Show();
            }
            else
            {
                MessageBox.Show("Sai");
            }
        }
Exemple #3
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            string userName = tbxAcount.Text;
            string passWord = tbxPassWord.Text;

            if (Login(userName, passWord))
            {
                Account       loginAccount = QuanLyQuanCafe.DAO.AccountDAO.Instance.GetAccountByUserName(userName);
                fTableManager f            = new fTableManager(loginAccount);
                this.Hide();
                f.ShowDialog();
                this.Show();
            }
            else
            {
                MessageBox.Show("Sai tên tài khoản hoặc mật khẩu!");
            }
        }
Exemple #4
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            string username = txbUserName.Text;
            string password = txbPassWord.Text;

            if (Login(username, password))
            {
                Account       account = AccountDAO.Instance.GetAccountByUsername(username);
                fTableManager f       = new fTableManager(account);
                this.Hide();
                f.ShowDialog();
                this.Show();
            }
            else
            {
                MessageBox.Show("Sai tên đăng nhập hoặc mặt khẩu");
            }
        }