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(); }
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; } } } } }