Exemplo n.º 1
0
        private void button_ok_Click(object sender, EventArgs e)
        {
            Quan_ly_NV Quan_Ly_NV = new Quan_ly_NV(this);

            Quan_Ly_NV.Show();
            this.Hide();


            if (this.textBox_user.Text.ToUpper() == "admin".ToUpper() && this.textBox_password.Text == "ni")
            {
                Quan_Ly_NV.addmin = 1;
            }
            else
            if (this.textBox_user.Text.ToUpper() == "gues".ToUpper() && this.textBox_password.Text == "gues")
            {
                Quan_Ly_NV.addmin = 0;
            }
            else
            {
                this.button_cancel_Click(this, e);
            }

            Quan_Ly_NV.Show();
            this.Hide();
        }
Exemplo n.º 2
0
 public NhanVien(Quan_ly_NV Quan_ly_NV)
 {
     InitializeComponent();
     this.Quan_ly_NV = Quan_ly_NV;
 }
Exemplo n.º 3
0
 public Phong_ban(Quan_ly_NV Quan_ly_NV)
 {
     InitializeComponent();
     this.Quan_ly_NV = Quan_ly_NV;
 }