private void btnAddServicesForHalls_Click(object sender, System.EventArgs e) { try { frmIns_BookingHalls_Services afrmIns_BookingHalls_Services = new frmIns_BookingHalls_Services(this, this.CurrentIDBookingHall, this.aNewPaymentHEN); afrmIns_BookingHalls_Services.Show(); } catch (Exception ex) { MessageBox.Show("frmTsk_UpdBookingHall.btnPrintPaymentTotal_Click\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void btnAddServicesForHalls_Click(object sender, EventArgs e) { try { if (this.CurrentIDBookingHall > 0) { frmIns_BookingHalls_Services afrmIns_BookingHalls_Services = new frmIns_BookingHalls_Services(this, this.CurrentIDBookingHall, this.aNewPaymentEN); afrmIns_BookingHalls_Services.ShowDialog(); } else { MessageBox.Show("Bạn phải chọn hội trường muốn add thêm dịch vụ"); } } catch (Exception ex) { MessageBox.Show("frmTsk_PaymentStep2.btnPrintPaymentTotal_Click\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void btnAdd_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { int IDBookingHall = Convert.ToInt32(grvListBookingHalls.GetFocusedRowCellValue("ID")); frmIns_BookingHalls_Services afrmIns_BookingHalls_Services = new frmIns_BookingHalls_Services(this, IDBookingHall); afrmIns_BookingHalls_Services.ShowDialog(); }
private void btnAddService_Click(object sender, EventArgs e) { frmIns_BookingHalls_Services afrmIns_BookingHalls_Services = new frmIns_BookingHalls_Services(this, this.CurrentIDBookingHall); afrmIns_BookingHalls_Services.ShowDialog(); }
public frmIns_Services(frmIns_BookingHalls_Services afrmIns_BookingHalls_Services) { InitializeComponent(); this.afrmIns_BookingHalls_Services = afrmIns_BookingHalls_Services; }