private void btnModify_Click(object sender, EventArgs e) { try { if (flx.Rows.Count > 1) { RoomAdd frm = new RoomAdd(this); frm.id = Convert.ToInt32(flx[flx.RowSel, "roomID"]); frm.ShowDialog(); } else { Box.infoBox("No data found."); } } catch (Exception er) { Box.errBox(er.Message); // throw; } }
public RoomBrowseTeachers(RoomAdd _frm) { InitializeComponent(); this._frm = _frm; }
private void btnAdd_Click(object sender, EventArgs e) { RoomAdd frm = new RoomAdd(this); frm.ShowDialog(); }