public ReportForm(RestEasyMDIParent re) { InitializeComponent(); restEasy = re; // set default index to 0 cbxReportType.SelectedIndex = 0; lblReportContent.Hide(); cbxReportContent.Hide(); }
public ReservationForm(ReservationController res, RestEasyMDIParent re) { clickCount = 0; InitializeComponent(); reservationController = res; restEasy = re; showReservationDates(); btnReset.Enabled = false; reservationController.Reservation.generateId(); btnConfirmReservation.Enabled = false; }
public EnquiryForm(RestEasyMDIParent re) { resController = new ReservationController(); guestController = new GuestController(); accountController = new AccountController(); reservations = resController.AllReservations; guests = guestController.AllGuests; guestAccounts = accountController.AllAccounts; InitializeComponent(); hideAllPanels(); restEasy = re; }
public EditReservationForm(RestEasyMDIParent re) { InitializeComponent(); pnlEditReservation.Hide(); lblReferenceDelete.Hide(); txtReservationId.Hide(); restEasy = re; reservationController = new ReservationController(); index = 0; btnContinue.Enabled = false; }
public PaymentForm(RestEasyMDIParent re, ReservationController res, Guest guest) { InitializeComponent(); restEasy = re; reservationController = res; aGuest = guest; // set labels on initialisation lblDeposit.Text = "R" + String.Format("{0:f2}", reservationController.Reservation.ReservationAmount * 1 / 10); this.MdiParent = restEasy; this.StartPosition = FormStartPosition.CenterParent; }
public GuestForm(ReservationController res, RestEasyMDIParent re) { InitializeComponent(); panelVerification.Show(); panelGuestDetails.Hide(); btnSearchAgain.Hide(); guestController = new GuestController(); // pass in instance Guests = guestController.AllGuests; reservationController = res; restEasy = re; this.MdiParent = restEasy; }
public SummaryPage(RestEasyMDIParent re, ReservationController res, Guest aGuest) { InitializeComponent(); restEasy = re; reservationController = res; this.MdiParent = restEasy; guest = aGuest; lblFirstName.Text = aGuest.FirstName; lblLastName.Text = aGuest.LastName; lblStartDate.Text = res.Reservation.StartDate; lblEndDate.Text = res.Reservation.EndDate; lblTotalAmount.Text = Convert.ToString(String.Format("{0:f2}", res.Reservation.ReservationAmount)); lblReferenceNumber.Text = Convert.ToString(reservationController.Reservation.Id); }
public ChargesPaymentsForm(RestEasyMDIParent re) { InitializeComponent(); this.StartPosition = FormStartPosition.CenterScreen; restEasy = re; this.MdiParent = restEasy; chargeController = new ChargeController(); paymentController = new PaymentController(); accountController = new AccountController(); reservationController = new ReservationController(); amount = 0; radioButton1.Checked = true; rbnCharge.Checked = true; }
public HomePage(RestEasyMDIParent re) { restEasy = re; InitializeComponent(); this.StartPosition = FormStartPosition.CenterScreen; System.Windows.Forms.ToolTip ToolTip1 = new System.Windows.Forms.ToolTip(); ToolTip1.SetToolTip(this.btnAddReservation, "Add a new reservation"); System.Windows.Forms.ToolTip ToolTip2 = new System.Windows.Forms.ToolTip(); ToolTip2.SetToolTip(this.btnEditReservation, "Edit an existing reservation"); System.Windows.Forms.ToolTip ToolTip3 = new System.Windows.Forms.ToolTip(); ToolTip3.SetToolTip(this.btnChargesPayments, "Add a charge or payment to an account"); System.Windows.Forms.ToolTip ToolTip4 = new System.Windows.Forms.ToolTip(); ToolTip4.SetToolTip(this.btnBookingEnquiry, "Make an enquiry on a reservation or guest"); System.Windows.Forms.ToolTip ToolTip5 = new System.Windows.Forms.ToolTip(); ToolTip5.SetToolTip(this.btnReport, "Create a report"); System.Windows.Forms.ToolTip ToolTip6 = new System.Windows.Forms.ToolTip(); ToolTip6.SetToolTip(this.btnExit, "Exit the system"); }