Esempio n. 1
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            fTableManager f = new fTableManager();

            this.Hide();
            f.ShowDialog();
            this.Show();
        }
Esempio n. 2
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("Sai tên tài khoản hoặc mật khẩu");
            }
        }