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
파일: ImagesForm.cs 프로젝트: jotjot/NPOD
        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
파일: PicofDay.cs 프로젝트: jotjot/NPOD
        private void UpdateContent()
        {
            var changer = new BackgroundChanger();

            GlobalVariables.NasaImage = changer.GetImage();
            changer.SetDesktopBackground(GlobalVariables.NasaImage.DownloadedPath);
            UpdateControlContent();
        }
예제 #3
0
파일: PicofDay.cs 프로젝트: BillCacy/NPOD
 private void UpdateContent()
 {
     var changer = new BackgroundChanger();
     GlobalVariables.NasaImage = changer.GetImage();
     changer.SetDesktopBackground(GlobalVariables.NasaImage.DownloadedPath);
     UpdateControlContent();
 }
예제 #4
0
파일: ImagesForm.cs 프로젝트: BillCacy/NPOD
 private void btnSetImage_Click(object sender, EventArgs e)
 {
     var bgChanger = new BackgroundChanger();
      GlobalVariables.NasaImage = bgChanger.GetImage(_currentImageNumber, _currentPage);
      bgChanger.SetDesktopBackground(GlobalVariables.NasaImage.DownloadedPath);
      Close();
 }