private void btnLuong_Click(object sender, EventArgs e) { FrmLuong f = new FrmLuong(); AddNewTab(f, 7); f.setTab(clstab.current()); f.change = new ChangeStateButton(changeButton); f.ShowEditAnDeleteButton(); }
private void btnThemLuong_Click(object sender, EventArgs e) { if (tab.action != ActionForm.KHONG) { FrmLuong frm = new FrmLuong(((DataItem)cbbLuong.SelectedItem).Value); if (frm.ShowDialog() == DialogResult.Cancel) { if (frm.isChangeData) { UpdatecbbLuong(frm.CurrentRowSelected); } else { if (frm.CurrentRowSelected != null) { cbbLuong.SelectedValue = frm.CurrentRowSelected; } } } } }