コード例 #1
0
ファイル: Form1.cs プロジェクト: DutchSoldier/FHSICT
        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
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: DutchSoldier/FHSICT
 private void btnPlaceReservation_Click(object sender, EventArgs e)
 {
     reservation = new Reservation();
     addPersonPage();
     CurrentStatus = Status.PlaceReservation;
 }
コード例 #3
0
ファイル: Form1.cs プロジェクト: DutchSoldier/FHSICT
        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);
                }

            }
        }