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