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);
     }
 }
예제 #2
0
 private void btnUseService_Type3_ItemClick(object sender, ItemClickEventArgs e)
 {
     try
     {
         frmTsk_UseServices afrmTsk_UseServices = new frmTsk_UseServices();
         afrmTsk_UseServices.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show("frmMain.btnUseService_Type3_ItemClick\n" + ex.ToString(), "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
 private void btnUseService_3_Click(object sender, EventArgs e)
 {
     frmTsk_UseServices afrm = new frmTsk_UseServices(this.Datasource.Code, this.Datasource.BookingRs_ID.GetValueOrDefault(),this.Datasource.BookingRooms_ID);
     afrm.ShowDialog();
     this.Parent.Dispose();
 }
 public frmIns_Services(frmTsk_UseServices afrmTsk_UseServices)
 {
     InitializeComponent();
     this.afrmTsk_UseServices = afrmTsk_UseServices;
 }