public virtual void PicChangedEvent(PicChangedEventArgs e) { EventHandler<PicChangedEventArgs> handler = PicChanged; if(handler != null) { handler(this, e); } }
public virtual void PicChangedEvent(PicChangedEventArgs e) { EventHandler <PicChangedEventArgs> handler = PicChanged; if (handler != null) { handler(this, e); } }
private void PicChangedHandler(object sender, PicChangedEventArgs e) { if (wnd == null) return; if(sender == this.landscapeWallpaperPicker) { DWAS2Helper.SetPicturePathConfig(PicMode.Wallpaper, Orientation.Landscape, wnd, e.NewPicPath); } else if(sender == this.portraitWallpaperPicker) { DWAS2Helper.SetPicturePathConfig(PicMode.Wallpaper, Orientation.Portrait, wnd, e.NewPicPath); } wnd.config.SaveConfig(); wnd.UpdateWallpaper(); }