GetImage() public method

Retrieves a BackgroundImage object containing the information downloaded from NASA regarding the current photo of the day
public GetImage ( ) : BackgroundImage
return BackgroundImage
Esempio n. 1
0
        private void btnSetImage_Click(object sender, EventArgs e)
        {
            var bgChanger = new BackgroundChanger();

            GlobalVariables.NasaImage = bgChanger.GetImage(_currentImageNumber, _currentPage);
            bgChanger.SetDesktopBackground(GlobalVariables.NasaImage.DownloadedPath);
            Close();
        }
Esempio n. 2
0
        private void UpdateContent()
        {
            var changer = new BackgroundChanger();

            GlobalVariables.NasaImage = changer.GetImage();
            changer.SetDesktopBackground(GlobalVariables.NasaImage.DownloadedPath);
            UpdateControlContent();
        }
Esempio n. 3
0
 private void UpdateContent()
 {
     var changer = new BackgroundChanger();
     GlobalVariables.NasaImage = changer.GetImage();
     changer.SetDesktopBackground(GlobalVariables.NasaImage.DownloadedPath);
     UpdateControlContent();
 }
Esempio n. 4
0
 private void btnSetImage_Click(object sender, EventArgs e)
 {
     var bgChanger = new BackgroundChanger();
      GlobalVariables.NasaImage = bgChanger.GetImage(_currentImageNumber, _currentPage);
      bgChanger.SetDesktopBackground(GlobalVariables.NasaImage.DownloadedPath);
      Close();
 }