SetDesktopBackground() публичный Метод

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
Результат void
Пример #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();
        }
Пример #2
0
        private void UpdateContent()
        {
            var changer = new BackgroundChanger();

            GlobalVariables.NasaImage = changer.GetImage();
            changer.SetDesktopBackground(GlobalVariables.NasaImage.DownloadedPath);
            UpdateControlContent();
        }
Пример #3
0
 private void UpdateContent()
 {
     var changer = new BackgroundChanger();
     GlobalVariables.NasaImage = changer.GetImage();
     changer.SetDesktopBackground(GlobalVariables.NasaImage.DownloadedPath);
     UpdateControlContent();
 }
Пример #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();
 }