private void btnLogin_Click(object sender, EventArgs e)
        {
            fTableManager f = new fTableManager();

            this.Hide();
            f.ShowDialog();
            this.Show();
        }
Beispiel #2
0
        private void btdn_Click(object sender, EventArgs e)
        {
            string username = txbUserName.Text;
            string password = txbPassWord.Text;

            if (Login(username, password))
            {
                Account       LoginAccount = 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", "Thông báo");
            }
        }
Beispiel #3
0
        private void BtnLogin_Click(object sender, EventArgs e)
        {
            string userName = txbUserName.Text;
            string passWord = txbPassWord.Text;

            if (Login(userName, passWord))
            {
                Account       loginAccount = AccountDAO.Instance.GetAccountByUserName(userName);
                fTableManager f            = new fTableManager(loginAccount);
                this.Hide();
                f.ShowDialog();
                this.Show();
            }
            else
            {
                MessageBox.Show("Tên Đăng nhập hoặc mật khẩu không đúng");
            }
        }