private void btnDanToc_Click(object sender, EventArgs e) { FrmDanToc f = new FrmDanToc(); AddNewTab(f, 5); f.setTab(clstab.current()); f.change = new ChangeStateButton(changeButton); f.ShowEditAnDeleteButton(); }
private void btnThemDT_Click(object sender, EventArgs e) { if (tab.action != ActionForm.KHONG) { FrmDanToc frm = new FrmDanToc(((DataItem)cbbDanToc.SelectedItem).Value); if (frm.ShowDialog() == DialogResult.Cancel) { if (frm.isChangeData) { UpdateCbbDanToc(frm.CurrentRowSelected); } else { if (frm.CurrentRowSelected != null) { cbbDanToc.SelectedValue = frm.CurrentRowSelected; } } } } }