public SlideShow (IFavorites favorites, Settings settings, IImageRepository imageRepository, ITimer timer) { _favorites = favorites; _imageRepository = imageRepository; Settings = settings; _timer = timer; _timer.Elapsed += HandleTimerElapsed; Settings = settings; _imagesIds = Settings.OnlyFavorites ? _favorites.GetFavoritesIds() : _imageRepository.GetImagesInfos ().Select (x => x.Id).ToList(); if (Settings.RandomOrder) { _imagesIds.Shuffle (); } else { // TODO: а сортировку по индексу забыла } }