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(); }
public NhanVien(Quan_ly_NV Quan_ly_NV) { InitializeComponent(); this.Quan_ly_NV = Quan_ly_NV; }
public Phong_ban(Quan_ly_NV Quan_ly_NV) { InitializeComponent(); this.Quan_ly_NV = Quan_ly_NV; }