Ejemplo n.º 1
0
        private void btnModifyReservation_Click(object sender, EventArgs e)
        {
            CurrentStatus = Status.Login;
            reservation = new Reservation();

            //test objecten hieronder
            //Person person1 = new Person("test", "tes2223t", "test", "test", "test", "test", "test");
            //Person person2 = new Person("test", "tes2223t", "test", "test", "test", "test", "test");
            //reservation.addPerson(person1);
            //reservation.addPerson(person2);

            //confirmCampsite(reservation.selectCampsite(400));

            //List<RentalObject> reservedObjects = new List<RentalObject>();
            //reservedObjects.Add(new RentalObject(100,"",0,0,5));
            //reservedObjects.Add(new RentalObject(600,"",0,0,5));

            //reservation.AlterReservedRentalObjects(reservedObjects);
            //updateReservedRentalObjects();

            //enum update
        }
Ejemplo n.º 2
0
 private void btnPlaceReservation_Click(object sender, EventArgs e)
 {
     reservation = new Reservation();
     addPersonPage();
     CurrentStatus = Status.PlaceReservation;
 }
Ejemplo n.º 3
0
        public void updateInterface()
        {
            if (currentStatus != Status.MainMenu && currentStatus != Status.Login)
            {
                btnPlaceReservation.Visible = false;
                btnModifyReservation.Visible = false;
                panelLogin.Visible = false;
                tabControl.Visible = true;
            }

            if (currentStatus == Status.PlaceReservation)
            {
                    getAvailableRentalObjects();
                    getAvailableCampsites();
            }

            if (currentStatus == Status.Login)
            {
                panelLogin.Visible = true;
                btnPlaceReservation.Visible = false;
                btnModifyReservation.Visible = false;

            }

            if (currentStatus == Status.ModifyReservation)
            {
                btnAddPerson.Visible = false;
                btnRemovePerson.Visible = false;

                reservation = new Reservation();
                getAvailableRentalObjects();
                getAvailableCampsites();
                reservation.getExistingReservation(rfidPrimaryCustomer);

                foreach (Person p in reservation.getPersons())
                {
                    addPersonPage(p);
                }

            }
        }