private void btnViewdetail_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { try { int BookingRs_ID = Convert.ToInt32(viewBookingcheckout.GetFocusedRowCellValue("IDBookingR")); int BookingRoomID = Convert.ToInt32(viewBookingcheckout.GetFocusedRowCellValue("ID")); frmTsk_EditBooking afrmTsk_EditBooking = new frmTsk_EditBooking(BookingRoomID,this.afrmMain); afrmTsk_EditBooking.Show(); } catch (Exception ex) { MessageBox.Show("frmTsk_CheckOutExpire.btnViewdetail_ButtonClick\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
public frmIns_Customers(frmTsk_EditBooking afrmTsk_EditBooking) { InitializeComponent(); this.afrmTsk_EditBooking = afrmTsk_EditBooking; }
private void btnEditInfoBooking_Click(object sender, EventArgs e) { frmTsk_EditBooking afrm = new frmTsk_EditBooking(this.Datasource.BookingRooms_ID, this.afrmMain); afrm.ShowDialog(); this.Parent.Dispose(); }
public frmUpd_Customers(frmTsk_EditBooking afrmTsk_EditBooking, int aIDCustomer) { InitializeComponent(); this.afrmTsk_EditBooking = afrmTsk_EditBooking; this.IDCustomer = aIDCustomer; }