public MainPageViewModel(IBingWallpaperService bingWallpaperService) { _bingWallpaperService = bingWallpaperService; if (IsInDesignMode == false) { Init(); } }
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(); }
public void SetUp() { _bingWallpaperService = new BingWallpaperService(); }
static Global() { BingWallpaperService = SimpleIoc.Default.GetInstance <IBingWallpaperService>(); }
public WallpaperCollection(IBingWallpaperService bingWallpaperService) { _bingWallpaperService = bingWallpaperService; }