private void btnAddService_Click(object sender, EventArgs e) { try { if (this.CurrentIDBookingRoom > 0) { frmTsk_UseServices afrmTsk_UseServices = new frmTsk_UseServices(this, this.CodeRoom, this.IDBookingR, this.CurrentIDBookingRoom, this.aNewPaymentEN); afrmTsk_UseServices.ShowDialog(); } else { MessageBox.Show("Bạn phải chọn phòng muốn thêm dịch vụ"); } } catch (Exception ex) { MessageBox.Show("frmTsk_PaymentStep2.btnAddService_Click\n" + ex.ToString(), "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public frmIns_Services(frmTsk_UseServices afrmTsk_UseServices) { InitializeComponent(); this.afrmTsk_UseServices = afrmTsk_UseServices; }