SetDesktopBackground() public method

Set the desktop to the current picture of the day Full file path to the image to set as the desktop background.
public SetDesktopBackground ( string fileName ) : void
fileName string
return void
Ejemplo 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();
        }
Ejemplo n.º 2
0
        private void UpdateContent()
        {
            var changer = new BackgroundChanger();

            GlobalVariables.NasaImage = changer.GetImage();
            changer.SetDesktopBackground(GlobalVariables.NasaImage.DownloadedPath);
            UpdateControlContent();
        }
Ejemplo n.º 3
0
 private void UpdateContent()
 {
     var changer = new BackgroundChanger();
     GlobalVariables.NasaImage = changer.GetImage();
     changer.SetDesktopBackground(GlobalVariables.NasaImage.DownloadedPath);
     UpdateControlContent();
 }
Ejemplo 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();
 }