private void btnHocVan_Click(object sender, EventArgs e) { FrmTrinhDo f = new FrmTrinhDo(); AddNewTab(f, 9); f.setTab(clstab.current()); f.change = new ChangeStateButton(changeButton); f.ShowEditAnDeleteButton(); }
private void btnThemTD_Click(object sender, EventArgs e) { if (tab.action != ActionForm.KHONG) { FrmTrinhDo frm = new FrmTrinhDo(((DataItem)cbbTrinhDo.SelectedItem).Value); if (frm.ShowDialog() == DialogResult.Cancel) { if (frm.isChangeData) { UpdatecbbTrinhDo(frm.CurrentRowSelected); } else { if (frm.CurrentRowSelected != null) { cbbTrinhDo.SelectedValue = frm.CurrentRowSelected; } } } } }