public BookingDatabaseIterator(BookingDatabase collection)
 {
     this.collection = collection;
     arrayLength     = collection.Rooms.Length;
     currentNodes    = new ListNode[arrayLength];
     isListEmpty     = new bool[arrayLength];
     currentIndex    = 0;
     for (int i = 0; i < arrayLength; i++)
     {
         currentNodes[i] = collection.Rooms[i];
     }
 }
Beispiel #2
0
        public TakingElement(BookingDatabase accomodationData,
                             TripAdvisorDatabase tripsData,
                             ShutterStockDatabase photosData,
                             OysterDatabase reviewData)
        {
            this.accomodationData = accomodationData;
            this.tripsData        = tripsData;
            this.photosData       = photosData;
            this.reviewData       = reviewData;

            if (bookDecrypter == null || photoDecrypter == null || tripDecrypter == null)
            {
                SetDecrypter();
            }
        }
 public BookingIterator(BookingDatabase database)
 {
     this.database = database;
 }
Beispiel #4
0
 public BookingIterator(BookingDatabase _bookingDatabase)
 {
     bookingDatabase = _bookingDatabase;
     First();
 }
Beispiel #5
0
 public BookingDatabaseIterator(BookingDatabase database)
 {
     this.database = database;
     currentRooms  = (ListNode[])database.Rooms.Clone();
 }
Beispiel #6
0
 public BookingIterator(BookingDatabase database)
 {
     Database        = database;
     CurrentObject   = null;
     CurrentCategory = 0;
 }
Beispiel #7
0
 public BookingDatabaseIterator(BookingDatabase d)
 {
     database = d;
 }