private async Task DisplayItemsList() { var filter = EdibleHelpers.EdibleTopClassToEdibles(selectedOption); await listPage.FilterList(filter, EdibleHelpers.EdibleTopClassToReadableString(selectedOption)); IsPresented = false; }
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) }, }); }