示例#1
0
 protected SearchResultVM()
 {
     this.Open = new Command <Gallery>(g =>
     {
         this.SelectedGallery = g;
         GalleryVM.GetVM(g);
         RootControl.RootController.Frame.Navigate(typeof(GalleryPage), g.ID);
     }, g => g != null);
 }
示例#2
0
 public PopularVM()
 {
     this.Refresh = new Command(() => this.Galleries.Clear());
     this.Open    = new Command <Gallery>(g =>
     {
         GalleryVM.GetVM(g);
         RootControl.RootController.Frame.Navigate(typeof(GalleryPage), g.ID);
     }, g => g != null);
 }
示例#3
0
 protected GalleryListVM()
 {
     this.Delete = new Command <Gallery>(async g =>
     {
         await g.DeleteAsync();
         this.Galleries?.Remove(g);
         RootControl.RootController.SendToast(Strings.Resources.Views.CachedPage.GalleryDeleted, null);
     }, g => g != null);
     this.Open = new Command <Gallery>(g =>
     {
         GalleryVM.GetVM(g);
         RootControl.RootController.Frame.Navigate(typeof(GalleryPage), g.ID);
     }, g => g != null);
 }