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.WallpaperFolder = @"E:\Photos\NewTravelDesktop\"; _changer.SetWallpaper(@"E:\Photos\NewTravelDesktop\DSC_0429.JPG"); //var items = wallpaperChangerPlugin1.GetMenuItems(); //int count = 0; //while (items.Count > 0) //{ // this.contextMenu.Items.Insert(count, items[0]); // count++; //} //wallpaperChangerPlugin1.Start(); }
/// <summary> /// Initializes the plugin. /// </summary> private void Initialize() { _wallpaperChanger = new WallpaperChanger(); }