Esempio n. 1
0
 public frmDM_NhomNgach(frmDM_NgachCongChuc _frmDM_NgachCongChuc)
 {
     InitializeComponent();
     oBNS_NhomNgach    = new cBNS_NhomNgach();
     pNS_NhomNgachInfo = new NS_NhomNgachInfo();
     cmbLinhVucCongTac.Properties.DataSource = (new cBNS_LinhVucCongTac()).Get(new NS_LinhVucCongTacInfo());
     SetControl(false);
     SetTxtRerdOnly(true);
     ofrmDM_NgachCongChuc = _frmDM_NgachCongChuc;
 }
 private void cmbNgachCongChuc_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.F5)
     {
         frmDM_NgachCongChuc frm = new frmDM_NgachCongChuc(null, this);
         frm.ShowDialog();
         if (IDNS_NgachCongChuc > 0)
         {
             cmbNgachCongChuc.Properties.DataSource = LoadNgachCongChuc();
             cmbNgachCongChuc.EditValue             = IDNS_NgachCongChuc;
         }
     }
     if (e.KeyCode == Keys.Delete)
     {
         cmbNgachCongChuc.EditValue = null;
     }
 }