private void Form1_Load(object sender, EventArgs e) { //FileSync sync = new FileSync(); //var folderSet = new FolderSet(); //folderSet.SourceFolder = @"E:\Development\"; //folderSet.DestinationFolder = @"Z:\Development\"; //sync.FolderSets = new List<FolderSet>(); //sync.FolderSets.Add(folderSet); //sync.SyncFiles(); //var items = fileSyncPlugin1.GetMenuItems(); //int count = 0; //while (items.Count > 0) //{ // this.contextMenu.Items.Insert(count, items[0]); // count++; //} //fileSyncPlugin1.Start(); _changer = new WallpaperChanger(); _changer.ApplyMedianFilter = true; _changer.LandscapeOnly = true; _changer.WallpaperFolder = @"E:\OneDrive\Pictures\Family\"; _changer.ChangeWallpaper(); //var items = wallpaperChangerPlugin1.GetMenuItems(); //int count = 0; //while (items.Count > 0) //{ // this.contextMenu.Items.Insert(count, items[0]); // count++; //} //wallpaperChangerPlugin1.Start(); }
/// <summary> /// Handles the ItemDoubleClick event of the imageListView control. /// Sets the wallpaper to the current image /// </summary> private void imageListView_ItemDoubleClick(object sender, ItemClickEventArgs e) { _wallpaperChanger.ChangeWallpaper(e.Item.FileName); }
private void button1_Click(object sender, EventArgs e) { _changer.ChangeWallpaper(); }