public MainPageViewModel(IBingWallpaperService bingWallpaperService)
        {
            _bingWallpaperService = bingWallpaperService;

            if (IsInDesignMode == false)
            {
                Init();
            }
        }
Beispiel #2
0
        public UpdateTileTask()
        {
            var unityContainer = new UnityContainer();

            unityContainer.RegisterType <IWallpaperService, BingWallpaperService>();
            unityContainer.RegisterType <IBingWallpaperService, BingWallpaperService>();
            unityContainer.RegisterType <IScreenService, ScreenService>();
            unityContainer.RegisterType <IBingoWallpaperSettings, BingoWallpaperSettings>();
            unityContainer.RegisterType <ITileService, TileService>();
            unityContainer.RegisterType <ISystemSettingService, SystemSettingService>();

            _bingWallpaperService   = unityContainer.Resolve <IBingWallpaperService>();
            _bingoWallpaperSettings = unityContainer.Resolve <IBingoWallpaperSettings>();
            _tileService            = unityContainer.Resolve <ITileService>();
            _systemSettingService   = unityContainer.Resolve <ISystemSettingService>();
        }
        public MainWindowViewModel(IBingWallpaperService bingWallpaperService)
        {
            _bingWallpaperService = bingWallpaperService;

            Start();
        }
Beispiel #4
0
 public void SetUp()
 {
     _bingWallpaperService = new BingWallpaperService();
 }
Beispiel #5
0
 static Global()
 {
     BingWallpaperService = SimpleIoc.Default.GetInstance <IBingWallpaperService>();
 }
 public WallpaperCollection(IBingWallpaperService bingWallpaperService)
 {
     _bingWallpaperService = bingWallpaperService;
 }