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];
     }
 }
Example #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();
            }
        }
Example #3
0
 public BookingIterator(BookingDatabase database)
 {
     this.database = database;
 }
Example #4
0
 public BookingIterator(BookingDatabase _bookingDatabase)
 {
     bookingDatabase = _bookingDatabase;
     First();
 }
Example #5
0
 public BookingDatabaseIterator(BookingDatabase database)
 {
     this.database = database;
     currentRooms  = (ListNode[])database.Rooms.Clone();
 }
Example #6
0
 public BookingIterator(BookingDatabase database)
 {
     Database        = database;
     CurrentObject   = null;
     CurrentCategory = 0;
 }
Example #7
0
 public BookingDatabaseIterator(BookingDatabase d)
 {
     database = d;
 }