public ConfigureViewModel(IWallpaperRepository database, IMetroDialog metroDialog)
 {
     DisplayName = "Configure WallMixer";
     _db         = database;
     _dialog     = metroDialog;
     Sources     = new BindableCollection <WallpaperSource>();
 }
Beispiel #2
0
        static Program()
        {
            AppDbContextFactory factory = new AppDbContextFactory();

            _appContext          = factory.CreateDbContext(null);
            _wallpaperRepository = new WallpaperRepository(_appContext);
            _userRepository      = new UserRepository(_appContext);
        }
Beispiel #3
0
 public MainViewModel(IWindowManager manager, IWallpaperRepository db, IMetroDialog dialog)
 {
     _windowManager = manager;
     _db            = db;
     _dialog        = dialog;
     _rand          = new Random();
     new Task(ChangeWallpaper).Start();
 }
Beispiel #4
0
 public WallpaperManager(IWallpaperRepository repository,
                         IWallpaperDataRepository dataRepository,
                         IEventService eventService)
     : base(repository, eventService)
 {
     _repository     = repository;
     _dataRepository = dataRepository;
 }
Beispiel #5
0
 public WallpaperJob(IWallpaperRepository wallpaperRepository)
 {
     _wallpaperRepository = wallpaperRepository;
 }
Beispiel #6
0
 public WallpaperJob(IWallpaperRepository wallpaperRepository, DGBlogRedisContext redisContext)
 {
     _wallpaperRepository = wallpaperRepository;
     _redis = redisContext;
 }
 public WallpaperController(IWallpaperRepository wallpaperRepository)
 {
     _wallpaperRepository = wallpaperRepository;
 }
Beispiel #8
0
 public WallpaperService(IWallpaperCacheService wallpaperCacheService,
                         IWallpaperRepository wallpaperRepository)
 {
     _wallpaperCacheService = wallpaperCacheService;
     _wallpaperRepository   = wallpaperRepository;
 }
Beispiel #9
0
 public BgImageJob(DGBlogRedisContext redisContext, IHttpClientFactory httpClient, IWallpaperRepository wallpapers)
 {
     _redis               = redisContext;
     _httpClient          = httpClient;
     _wallpaperRepository = wallpapers;
 }