예제 #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);
 }