示例#1
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            fTableManager f = new fTableManager();

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

                if (Login(username, password))
                {
                    AccountDTO    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");
                }
            }
            catch { }
        }