Ejemplo n.º 1
0
        public ReportForm(RestEasyMDIParent re)
        {
            InitializeComponent();
            restEasy = re;

            // set default index to 0
            cbxReportType.SelectedIndex = 0;

            lblReportContent.Hide();
            cbxReportContent.Hide();
        }
Ejemplo n.º 2
0
        public ReservationForm(ReservationController res, RestEasyMDIParent re)
        {
            clickCount = 0;

            InitializeComponent();
            reservationController = res;
            restEasy = re;
            showReservationDates();
            btnReset.Enabled = false;
            reservationController.Reservation.generateId();
            btnConfirmReservation.Enabled = false;
        }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
        public EditReservationForm(RestEasyMDIParent re)
        {
            InitializeComponent();
            pnlEditReservation.Hide();
            lblReferenceDelete.Hide();
            txtReservationId.Hide();

            restEasy = re;
            reservationController = new ReservationController();
            index = 0;
            btnContinue.Enabled = false;
        }
Ejemplo n.º 5
0
        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;
        }
Ejemplo n.º 6
0
        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;
        }
Ejemplo n.º 7
0
        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);
        }
Ejemplo n.º 8
0
        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;
        }
Ejemplo n.º 9
0
        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");
        }