private void ShowBookingForm(int id) { frmBooking frm = new frmBooking(); frm.OnDisplayRecord(id); frm.ControlBox = true; frm.FormBorderStyle = FormBorderStyle.Fixed3D; frm.MaximizeBox = false; frm.ShowDialog(); }
void grdLister_CellDoubleClick(object sender, GridViewCellEventArgs e) { try { int Id = e.Row.Cells["Id"].Value.ToInt(); frmBooking frm = new frmBooking(); frm.OnDisplayRecord(Id); frm.Show(); } catch (Exception ex) { } }
private void btnView_Click(object sender, EventArgs e) { try { long Id = 0; Id = txtJobRef.Tag.ToLong(); if (Id > 0) { frmBooking frm = new frmBooking(); frm.OnDisplayRecord(Id); frm.ShowDialog(); } else { ENUtils.ShowMessage("Required : Booking Id"); } } catch (Exception ex) { ENUtils.ShowMessage(ex.Message); } }