Пример #1
0
 private void Frm_DoiMatKhau_Load(object sender, EventArgs e)
 {
     bd = new BLL_HeThong();
     if (Cls_Main.maTaiKhoan.Equals("1"))
     {
         gbCapLaiMatKhau.Enabled = true;
         LayDuLieuVaoCboNhanVien();
     }
     else
     {
         gbCapLaiMatKhau.Enabled = false;
     }
 }
 private void Frm_SaoLuuPhucHoi_Load(object sender, EventArgs e)
 {
     bd = new BLL_HeThong();
     if (saoLuuStatus)
     {
         this.Text       = "Thực hiện thao tác sao lưu dữ liệu";
         btnThucThi.Text = "Sao lưu";
     }
     else
     {
         this.Text       = "Thực hiện thao tác phục hồi dữ liệu";
         btnThucThi.Text = "Phục hồi";
     }
 }
 private void Frm_NhanVien_Modifies_Load(object sender, EventArgs e)
 {
     bd = new BLL_HeThong();
     LayDuLieuVaoCboTaiKhoan();
     if (Them)
     {
         txtMaNhanVien.Text = "0";
         txtTenNhanVien.Focus();
     }
     else  //sửa
     {
         //view thông nhân viên cần sửa
         LayDuLieuVaoControl(nhanVien);
     }
 }
 private void Frm_NhanVien_Main_Load(object sender, EventArgs e)
 {
     bd = new BLL_HeThong();
     HienThiDanhSachNhanVien();
 }