private void Initialize()
        {
            WallPaperManager = new Model.WallpaperConfiguration();
            ScreenConfigurations = new ObservableCollection<ScreenConfigurationViewModel>();

            foreach (Model.ScreenConfiguration config in WallPaperManager.Screens)
            {
                ScreenConfigurations.Add(new ScreenConfigurationViewModel(config));
            }
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            args = new string[2] {
                //@"C:\Users\gleroi\Pictures\Wallpapers\abyss___chaotica_rendered_by_kr0mat1k-d31el6e.jpg",
                @"C:\Users\gleroi\Pictures\Wallpapers\abyss___chaotica_rendered_by_kr0mat1k-d31el6e.jpg",
                @"C:\Users\gleroi\Pictures\Wallpapers\fractal_19-wallpaper-1440x900.jpg"
            };
            WallpaperConfiguration configuration = new WallpaperConfiguration();

            if (configuration.Screens.Count != args.Length)
                throw new ArgumentException("args : need at least " + configuration.Screens.Count + " paths");

            int idx = 0;
            foreach (ScreenConfiguration conf in configuration.Screens)
            {
                conf.ImagePath = args[idx];
                conf.Style = Style.Tiled;
                idx++;
            }

            WallpaperService service = new WallpaperService();
            service.Configure(configuration);
            service.Run();
        }
Ejemplo n.º 3
0
 public void Configure(WallpaperConfiguration configuration)
 {
     Configuration = configuration;
 }