Example #1
0
 public Worker(ILogger <Worker> logger, IOptions <AppSettings> settings, IWallpaperService wallpaperService, IImageService imageService)
 {
     _logger           = logger;
     _settings         = settings;
     _wallpaperService = wallpaperService;
     _imageService     = imageService;
 }
 public ImageGalleryDetailViewModel(IIOManager iOManager,
                                    IHTTPService hTTPService,
                                    IWallpaperService wallpaperService,
                                    IDialogService dialogService)
 {
     _iOManager        = iOManager ?? throw new ArgumentNullException(nameof(iOManager));
     _hTTPService      = hTTPService ?? throw new ArgumentNullException(nameof(hTTPService));
     _wallpaperService = wallpaperService ?? throw new ArgumentNullException(nameof(wallpaperService));
     _dialogService    = dialogService ?? throw new ArgumentNullException(nameof(dialogService));
 }
Example #3
0
 public DetailViewModel(IWallpaperService wallpaperService, IBingoWallpaperSettings settings, ISystemSettingService systemSettingService, IBingoFileService bingoFileService, IImageLoader imageLoader, IAppToastService appToastService, IBingoShareService bingoShareService)
 {
     _wallpaperService     = wallpaperService;
     _settings             = settings;
     _systemSettingService = systemSettingService;
     _bingoFileService     = bingoFileService;
     _imageLoader          = imageLoader;
     _appToastService      = appToastService;
     _bingoShareService    = bingoShareService;
 }
Example #4
0
 public MainForm(IHost host)
 {
     InitializeComponent();
     InitComponents();
     _host                = host;
     _requestService      = ActivatorUtilities.CreateInstance <RequestService>(_host.Services);
     _imageService        = ActivatorUtilities.CreateInstance <ImageService>(_host.Services);
     _messageBoxService   = ActivatorUtilities.CreateInstance <MessageBoxService>(_host.Services);
     _fileService         = ActivatorUtilities.CreateInstance <FileService>(_host.Services);
     _wallpaperService    = ActivatorUtilities.CreateInstance <WallpaperService>(_host.Services);
     _wallhavenApiService = ActivatorUtilities.CreateInstance <WallhavenApiService>(_host.Services);
 }
Example #5
0
 public SettingsViewModel(IBackgroundTaskService backgroundTaskService,
                          IWallpaperService wallpaperService,
                          IHTTPService hTTPService,
                          IIOManager iOManager,
                          IBingHTTPService bingHTTPService)
 {
     _backgroundTaskService = backgroundTaskService ?? throw new System.ArgumentNullException(nameof(backgroundTaskService));
     _wallpaperService      = wallpaperService ?? throw new System.ArgumentNullException(nameof(wallpaperService));
     _hTTPService           = hTTPService ?? throw new System.ArgumentNullException(nameof(hTTPService));
     _iOManager             = iOManager ?? throw new System.ArgumentNullException(nameof(iOManager));
     _bingHTTPService       = bingHTTPService ?? throw new ArgumentNullException(nameof(bingHTTPService));
 }
 public BingImageViewModel(IHTTPService httpService,
                           IDataService dataService,
                           IIOManager iOManager,
                           IWallpaperService wallpaperService,
                           IDialogService dialogService)
 {
     ImgPath           = "a/b";
     ImageDTOList      = new List <ImageDTO>();
     _httpService      = httpService ?? throw new ArgumentNullException(nameof(httpService));
     _dataService      = dataService ?? throw new ArgumentNullException(nameof(dataService));
     _iOManager        = iOManager ?? throw new ArgumentNullException(nameof(iOManager));
     _wallpaperService = wallpaperService ?? throw new ArgumentNullException(nameof(wallpaperService));
     _dialogService    = dialogService ?? throw new ArgumentNullException(nameof(dialogService));
 }
Example #7
0
 public WallpaperController(IWallpaperService wallpaperService)
 {
     _wallpaperService = wallpaperService;
 }
Example #8
0
 public OneImageActionBarService(IImageGalleryService imageGalleryService, IWallpaperService wallpaperService)
 {
     _imageGalleryService = imageGalleryService;
     _wallpaperService    = wallpaperService;
 }
Example #9
0
 public TileService(IWallpaperService wallpaperService)
 {
     _wallpaperService = wallpaperService;
 }
Example #10
0
 public HomeController(ILog logger,
     IWallpaperService wallpaperService)
 {
     _logger = logger;
     _wallpaperService = wallpaperService;
 }
Example #11
0
 public BingoWallpaperSettings(IWallpaperService wallpaperService, IScreenService screenService)
 {
     _wallpaperService = wallpaperService;
     _screenService    = screenService;
 }
 public WallpaperUrlConverter()
 {
     _wallpaperService = ServiceLocator.Current.GetInstance <IWallpaperService>();
 }
 public HomeController(ILog logger,
                       IWallpaperService wallpaperService)
 {
     _logger           = logger;
     _wallpaperService = wallpaperService;
 }