コード例 #1
0
 private void OkButton_Click(object sender, EventArgs e)
 {
     defWallpaper = WallpaperController.GetCurrentWallpaper();
     defColor     = WallpaperController.GetColor();
     WallpaperController.SetColor(defColor);
     WallpaperController.SetWallpaper(defWallpaper, 0, 0);
     Close();
 }
コード例 #2
0
 public MainForm()
 {
     defWallpaper = WallpaperController.GetCurrentWallpaper();
     defColor     = WallpaperController.GetColor();
     InitializeComponent();
 }