示例#1
0
        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();
        }
示例#2
0
 /// <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);
 }
示例#3
0
 private void button1_Click(object sender, EventArgs e)
 {
     _changer.ChangeWallpaper();
 }