internal static void LoadSelected()
 {
     if (index == FolderIndex)
     {
         GalleryToggle.CloseHorizontalGallery();
     }
     else
     {
         SetSelected(FolderIndex, false);
         GalleryClick.Click(index);
     }
 }
示例#2
0
 internal static async Task Add(BitmapSource pic, int id)
 {
     await ConfigureWindows.GetMainWindow.Dispatcher.BeginInvoke(DispatcherPriority.Background, new Action(() =>
     {
         var selected = id == ChangeImage.Navigation.FolderIndex;
         var item = new Views.UserControls.PicGalleryItem(pic, id, selected);
         item.MouseLeftButtonDown += delegate
         {
             GalleryClick.Click(id);
         };
         GetPicGallery.Container.Children.Add(item);
     }));
 }