private void btnBookHall_Click(object sender, EventArgs e) { frmTsk_BookingHall_Customer_New afrmTsk_BookingHall_Customer_New = new frmTsk_BookingHall_Customer_New(this, this.aNewPaymentEN.IDBookingR, this.aNewPaymentEN.IDCompany, this.aNewPaymentEN.IDCustomer, this.aNewPaymentEN.CustomerType); afrmTsk_BookingHall_Customer_New.ShowDialog(); }
//Hiennv private void btnCheckInHalls_Click(object sender, EventArgs e) { try { if(this.Datasource.BookingRs_CustomerType == 1) { frmTsk_BookingHall_Customer_New afrmTsk_BookingHall_Customer = new frmTsk_BookingHall_Customer_New(this.Datasource.BookingRs_ID, this.Datasource.Companies_ID, this.Datasource.Customers_ID,1); afrmTsk_BookingHall_Customer.ShowDialog(); this.Parent.Dispose(); } else if (this.Datasource.BookingRs_CustomerType == 2) { frmTsk_BookingHall_Customer_New afrmTsk_BookingHall_Customer = new frmTsk_BookingHall_Customer_New(this.Datasource.BookingRs_ID, this.Datasource.Companies_ID, this.Datasource.Customers_ID,2); afrmTsk_BookingHall_Customer.ShowDialog(); this.Parent.Dispose(); } else if (this.Datasource.BookingRs_CustomerType == 3) { frmTsk_BookingHall_Customer_New afrmTsk_BookingHall_Customer = new frmTsk_BookingHall_Customer_New(this.Datasource.BookingRs_ID, this.Datasource.Companies_ID, this.Datasource.Customers_ID,3); afrmTsk_BookingHall_Customer.ShowDialog(); this.Parent.Dispose(); } } catch (Exception ex) { MessageBox.Show("uc_Tooltip_StatusRoom_3.btnCheckInHalls_Click\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error); } }