private void btnPhongBan_Click(object sender, EventArgs e) { FrmPhongBan f = new FrmPhongBan(); AddNewTab(f, 2); f.setTab(clstab.current()); f.change = new ChangeStateButton(changeButton); f.ShowEditAnDeleteButton(); }
private void btnThemPhong_Click(object sender, EventArgs e) { if (tab.action != ActionForm.KHONG) { FrmPhongBan frm = new FrmPhongBan(((DataItem)cbbPhong.SelectedItem).Value); if (frm.ShowDialog() == DialogResult.Cancel) { if (frm.isChangeData) { UpdateCbbPhongBan(frm.CurrentRowSelected); } else { if (frm.CurrentRowSelected != null) { cbbPhong.SelectedValue = frm.CurrentRowSelected; } } } } }