public void AddButton(enumButton eBtn, ref Button btn)
 {
     setButtonStatus(eBtn, true);
     switch (eBtn)
     {
         case enumButton.None:
             break;
         case enumButton.Them:
             btnThem = btn;
             btnThem.EnabledChanged += new System.EventHandler(btnThem_EnabledChanged);
             //btnThem.Click += new System.EventHandler(this.btnThem_Click);
             break;
         case enumButton.Xoa:
             btnXoa = btn;
             btnXoa.EnabledChanged += new System.EventHandler(btnXoa_EnabledChanged);
             //btnXoa.Click += new System.EventHandler(this.btnXoa_Click);
             break;
         case enumButton.Sua:
             btnSua = btn;
             btnSua.EnabledChanged += new System.EventHandler(btnSua_EnabledChanged);
             //btnSua.Click += new System.EventHandler(this.btnSua_Click);
             break;
         case enumButton.LamMoi:
             btnLamMoi = btn;
             btnLamMoi.EnabledChanged += new System.EventHandler(btnLamMoi_EnabledChanged);
             //btnLamMoi.Click += new System.EventHandler(this.btnLamMoi_Click);
             break;
         case enumButton.Luu:
             btnLuu = btn;
             btnLuu.EnabledChanged += new System.EventHandler(btnLuu_EnabledChanged);
             break;
         case enumButton.Huy:
             btnHuy = btn;
             btnHuy.EnabledChanged += new System.EventHandler(btnHuy_EnabledChanged);
             //btnHuy.Click += new System.EventHandler(this.btnHuy_Click);
             break;
         case enumButton.Dong:
             btnDong = btn;
             //btnDong.Click += new System.EventHandler(this.btnDong_Click);
             break;
         default:
             break;
     }
 }
 public clsPanelButton()
 {
     clickStatus = enumButton.None;
 }
 ///////
 //SET Click Status
 public void setClickThem()
 {
     clickStatus = enumButton.Them;
 }
 public void setClickXoa()
 {
     clickStatus = enumButton.Xoa;
 }
 public void setClickStatus(enumButton stt)
 {
     this.clickStatus = stt;
 }
 public void setClickSua()
 {
     clickStatus = enumButton.Sua;
 }
 public void setClickLamMoi()
 {
     clickStatus = enumButton.LamMoi;
 }
 public void setClickLuu()
 {
     clickStatus = enumButton.Luu;
 }
 public void setClickDong()
 {
     clickStatus = enumButton.Dong;
 }
 public void setButtonStatus(enumButton eBtn, bool bStatus)
 {
     if (!btnStatus.ContainsKey(eBtn))
     {
         btnStatus.Add(eBtn, bStatus);
     }
     else {
         btnStatus[eBtn] = bStatus;
     }
 }
 public void setButtonClickEvent(enumButton eBtn)
 {
     switch (eBtn)
     {
         case enumButton.None:
             break;
         case enumButton.Them:
             btnThem.Click += new System.EventHandler(this.btnThem_Click);
             break;
         case enumButton.Xoa:
             btnXoa.Click += new System.EventHandler(this.btnXoa_Click);
             break;
         case enumButton.Sua:
             btnSua.Click += new System.EventHandler(this.btnSua_Click);
             break;
         case enumButton.LamMoi:
             btnLamMoi.Click += new System.EventHandler(this.btnLamMoi_Click);
             break;
         case enumButton.Luu:
             break;
         case enumButton.Huy:
             btnHuy.Click += new System.EventHandler(this.btnHuy_Click);
             break;
         case enumButton.Dong:
             btnDong.Click += new System.EventHandler(this.btnDong_Click);
             break;
         default:
             break;
     }
 }
 //END BOOL
 ///////////
 //RESET Click Status
 public void ResetClickStatus()
 {
     clickStatus = enumButton.None;
 }
 public bool getButtonStatus(enumButton eBtn)
 {
     if (btnStatus.ContainsKey(eBtn))
     {
         return btnStatus[eBtn];
     }
     else
     {
         return false;
     }
 }