private void btnCheckOut_3_Click(object sender, EventArgs e) { frmTsk_CheckOut afrm = new frmTsk_CheckOut(this.afrmMain,this.Datasource.BookingRooms_ID); afrm.ShowDialog(); this.Parent.Dispose(); }
private void btnCheckOut_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { int IDBookingRoom = int.Parse(viewOwePay.GetFocusedRowCellValue("IDBookingRoom").ToString()); int BookingStatus = int.Parse(viewOwePay.GetFocusedRowCellValue("BookingRooms_Status").ToString()); if (BookingStatus == 3) { frmTsk_CheckOut afrmTsk_CheckOut = new frmTsk_CheckOut(IDBookingRoom, this); afrmTsk_CheckOut.ShowDialog(); } else { MessageBox.Show("Phòng này đã được check out . \n", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information); } }
private void btnCheckOut_type3_ItemClick(object sender, ItemClickEventArgs e) { try { frmTsk_CheckOut afrmTsk_CheckOut = new frmTsk_CheckOut(this); afrmTsk_CheckOut.Show(); } catch (Exception ex) { MessageBox.Show("frmMain.btnCheckOut_type3_ItemClick\n" + ex.ToString(), "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Error); } }