#pragma warning disable 4014 public ArticleRepository(ISettingsRepository settingsRepository, IProgressService progressService, IStorageService storageService, ISqliteService sqliteService, IThemeRepository themeRepository, IImageDownloadService imageDownloadService, IPermissionsService permissionsService) { _settingsRepository = settingsRepository; _progressService = progressService; _storageService = storageService; _sqliteService = sqliteService; _themeRepository = themeRepository; _imageDownloadService = imageDownloadService; _permissionsService = permissionsService; _articleGenericRepository = new GenericRepository<ArticleModel, ArticleEntity>(_sqliteService); _imageContentGenericRepository = new GenericRepository<ImageContentModel, ImageContentEntity>(_sqliteService); _textContentGenericRepository = new GenericRepository<TextContentModel, TextContentEntity>(_sqliteService); _galleryContentGenericRepository = new GenericRepository<GalleryContentModel, GalleryContentEntity>(_sqliteService); Initialize(); }
#pragma warning disable 4014 public ArticleRepository(ISettingsRepository settingsRepository, IProgressService progressService, IStorageService storageService, ISqliteService sqliteService, IThemeRepository themeRepository, IImageDownloadService imageDownloadService, IPermissionsService permissionsService) { _settingsRepository = settingsRepository; _progressService = progressService; _storageService = storageService; _sqliteService = sqliteService; _themeRepository = themeRepository; _imageDownloadService = imageDownloadService; _permissionsService = permissionsService; _articleGenericRepository = new GenericRepository <ArticleModel, ArticleEntity>(_sqliteService); _imageContentGenericRepository = new GenericRepository <ImageContentModel, ImageContentEntity>(_sqliteService); _textContentGenericRepository = new GenericRepository <TextContentModel, TextContentEntity>(_sqliteService); _galleryContentGenericRepository = new GenericRepository <GalleryContentModel, GalleryContentEntity>(_sqliteService); Initialize(); }
public MainPageViewModel(IProgressService progressService, IArticleRepository articleRepository, ISettingsRepository settingsRepository, IHistoryNavigationService historyNavigationService, IDialogService dialogService, IPermissionsService permissionsService) { _articleRepository = articleRepository; _historyNavigationService = historyNavigationService; _permissionsService = permissionsService; _openSettingsCommand = new RelayCommand(OpenSettings); _openInfoCommand = new RelayCommand(OpenInfo); _refreshCommand = new LoadingRelayCommand(Refresh, () => _canRefresh, true); _selectArticleCommand = new RelayCommand <ArticleModel>(SelectArticle); _selectFeedCommand = new RelayCommand <FeedModel>(SelectFeed); _permissionsService.PermissionsChanged += PermissionsServiceOnPermissionsChanged; Sources = _articleRepository.GetActiveSources(); if (!IsInDesignMode) { Initialize(); } }
public MainPageViewModel(IProgressService progressService, IArticleRepository articleRepository, ISettingsRepository settingsRepository, IHistoryNavigationService historyNavigationService, IDialogService dialogService, IPermissionsService permissionsService) { _articleRepository = articleRepository; _historyNavigationService = historyNavigationService; _permissionsService = permissionsService; _openSettingsCommand = new RelayCommand(OpenSettings); _openInfoCommand = new RelayCommand(OpenInfo); _refreshCommand = new LoadingRelayCommand(Refresh, () => _canRefresh, true); _selectArticleCommand = new RelayCommand<ArticleModel>(SelectArticle); _selectFeedCommand = new RelayCommand<FeedModel>(SelectFeed); _permissionsService.PermissionsChanged += PermissionsServiceOnPermissionsChanged; Sources = _articleRepository.GetActiveSources(); if (!IsInDesignMode) { Initialize(); } }