Beispiel #1
0
 protected virtual void OnWallpaperChanged(WallpaperChangedEventArgs e)
 {
     if (WallpaperChanged != null)
     {
         WallpaperChanged(this, e);
     }
 }
Beispiel #2
0
 static void WallpaperChanged(object sender, WallpaperChangedEventArgs e)
 {
     display.TypeImage = e.TypeImage;
     if (e.TypeImage)
     {
         display.Image = e.NewImage;
     }
     else
     {
         display.Color = e.NewColor;
     }
     display.Refresh();
 }
Beispiel #3
0
        private void Update_Click(object sender, EventArgs e)
        {
            LoadWallpaper();
            Properties.Settings.Default.filename = openFileDialog.FileName;
            Properties.Settings.Default.color    = colorDialog.Color;
            Properties.Settings.Default.Save();
            WallpaperChangedEventArgs args = new WallpaperChangedEventArgs
            {
                TypeImage = imageWallpaper.Checked,
                NewImage  = (Bitmap)selectedPicture.Image,
                NewColor  = colorDialog.Color
            };

            OnWallpaperChanged(args);
        }