Exemplo n.º 1
0
        private void btnChucVu_Click(object sender, EventArgs e)
        {
            FrmChucVu f = new FrmChucVu();

            AddNewTab(f, 4);
            f.setTab(clstab.current());
            f.change = new ChangeStateButton(changeButton);
            f.ShowEditAnDeleteButton();
        }
Exemplo n.º 2
0
 private void btnThemCV_Click(object sender, EventArgs e)
 {
     if (tab.action != ActionForm.KHONG)
     {
         FrmChucVu frm = new FrmChucVu(((DataItem)cbbChucVu.SelectedItem).Value);
         if (frm.ShowDialog() == DialogResult.Cancel)
         {
             if (frm.isChangeData)
             {
                 UpdateCbbChucVu(frm.CurrentRowSelected);
             }
             else
             {
                 if (frm.CurrentRowSelected != null)
                 {
                     cbbChucVu.SelectedValue = frm.CurrentRowSelected;
                 }
             }
         }
     }
 }