Exemple #1
0
        private async Task DisplayItemsList()
        {
            var filter = EdibleHelpers.EdibleTopClassToEdibles(selectedOption);

            await listPage.FilterList(filter, EdibleHelpers.EdibleTopClassToReadableString(selectedOption));

            IsPresented = false;
        }
Exemple #2
0
 public CatalogueMasterViewModel()
 {
     MenuItems = new ObservableCollection <CatalogueMenuItem>(new[]
     {
         new CatalogueMenuItem {
             Value = null, Title = "Todas"
         },
         new CatalogueMenuItem {
             Value = EdibleTopClass.Safe, Title = EdibleHelpers.EdibleTopClassToReadableString(EdibleTopClass.Safe)
         },
         new CatalogueMenuItem {
             Value = EdibleTopClass.Toxic, Title = EdibleHelpers.EdibleTopClassToReadableString(EdibleTopClass.Toxic)
         },
         new CatalogueMenuItem {
             Value = EdibleTopClass.Warning, Title = EdibleHelpers.EdibleTopClassToReadableString(EdibleTopClass.Warning)
         },
         new CatalogueMenuItem {
             Value = EdibleTopClass.NoInterest, Title = EdibleHelpers.EdibleTopClassToReadableString(EdibleTopClass.NoInterest)
         },
     });
 }