예제 #1
0
 private bool RestoreDesktop()
 {
     if (redr)
     {
         redr = false;                 //?
         WinAPI.ChangeWalpaper(TempParameters.Firstpath);
         File.Delete(TempParameters.Secondpath);
         return(true);
     }
     return(false);
 }
예제 #2
0
 private bool RedrawDesktop()
 {
     if (/*ParametersInstance != null && */ TempParameters.Desktop != "" && !redr)
     {
         redr = true;
         LinearGradientBrush myBrush = new LinearGradientBrush(ClientRectangle, TempParameters.ParametersInstance.UIParameters.DesktopLabelColor1,
                                                               TempParameters.ParametersInstance.UIParameters.DesktopLabelColor2, TempParameters.ParametersInstance.UIParameters.DesktopLabelEffect);
         Bitmap b = MakeBMP(TempParameters.ParametersInstance.UIParameters.DesktopLabelFont, myBrush, TempParameters.ParametersInstance.UIParameters.DesktopLabelCoordinates);
         File.Delete(TempParameters.Secondpath);
         b.Save(TempParameters.Secondpath);
         WinAPI.ChangeWalpaper(TempParameters.Secondpath);
         return(true);
     }
     return(false);
 }