Ejemplo n.º 1
0
        public MainWindow()
        {
            InitializeComponent();

            view = new ImageViewer("/_api/hamburg-germany-5646.json");
            this.currentImage.Source = view.GetImage();
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            if (Registry.CurrentUser.GetValue("EarthViewEndpoint") == null)
            {
                Registry.CurrentUser.SetValue("EarthViewEndpoint", "/_api/hamburg-germany-5646.json");
            }

            try
            {
                var seed = Registry.CurrentUser.GetValue("EarthViewEndpoint");
                var view = new EarthView.ImageViewer(seed.ToString());

                Registry.CurrentUser.SetValue("EarthViewEndpoint", view.GetNextEndpoint());
                view.SetWallpaper();
            }

            catch (WebException e)
            {
                Debug.WriteLine(e.ToString());
            }
        }