Example #1
0
 private void applyButton_Click(object sender, EventArgs e)
 {
     if (result == DialogResult.OK)
     {
         WallpaperController.SetColor(selectColorDialog.Color);
     }
 }
Example #2
0
 private void OkButton_Click(object sender, EventArgs e)
 {
     defWallpaper = WallpaperController.GetCurrentWallpaper();
     defColor     = WallpaperController.GetColor();
     WallpaperController.SetColor(defColor);
     WallpaperController.SetWallpaper(defWallpaper, 0, 0);
     Close();
 }
Example #3
0
 private void MainForm_Deactivate(object sender, EventArgs e)
 {
     WallpaperController.SetColor(defColor);
     WallpaperController.SetWallpaper(defWallpaper, 0, 0);
 }
Example #4
0
 private void cancleButton_Click(object sender, EventArgs e)
 {
     WallpaperController.SetColor(defColor);
     WallpaperController.SetWallpaper(defWallpaper, 0, 0);
     Close();
 }