private void btnModify_Click(object sender, EventArgs e) { if (flx.Rows.Count > 1) { SectionAddModify frm = new SectionAddModify(this); frm.id = Convert.ToInt32(flx[flx.RowSel, "sectionID"]); frm.ShowDialog(); } else { Box.warnBox("Please select a row."); } }
private void btnAdd_Click(object sender, EventArgs e) { SectionAddModify frm = new SectionAddModify(this); frm.ShowDialog(); }