Exemple #1
0
        private void btLogin_Click(object sender, EventArgs e)
        {
            HP_User_BUS log  = new HP_User_BUS();
            string      mess = log.Login_BUS(txtUsername.Text, txtPassword.Text);

            MessageBox.Show(mess);
        }
Exemple #2
0
        private void btLogin_Click(object sender, EventArgs e)
        {
            HP_User_BUS log  = new HP_User_BUS();
            string      mess = log.Login_BUS(txtUsername.Text, txtPassword.Text);

            if (mess == "1")
            {
                MessageBox.Show("Đăng Nhập Thành Công !");
                Form f = new QuanLyNhanVien();
                this.Hide();
                f.ShowDialog();
            }
            else
            {
                MessageBox.Show(mess);
            }
        }