public void ProcessPicture(PictureBatch pb, string config) { List<Picture> lp = pb.GetPictures(1); if (!lp.Any()) return; Picture p = lp.First(); OEMBackgroundManager oembm = new OEMBackgroundManager(); oembm.SetNewPicture(p); }
public void ProcessPicture(PictureBatch pb, string config) { List <Picture> lp = pb.GetPictures(1); if (!lp.Any()) { return; } Picture p = lp.First(); OEMBackgroundManager oembm = new OEMBackgroundManager(); oembm.SetNewPicture(p); }
static void Main(string[] args) { OEMBackgroundManager oembm = new OEMBackgroundManager(); if (args.Contains("/enableoembg")) { oembm.EnableOEMBackground(); oembm.CreateDirs(); } if (args.Contains("/disableoembg")) { oembm.DisableOEMBackground(); } }