async void ExecuteNewEntryCommand() { var newSle = new ShoppingListEntry(); ShoppingListEntries.Add(newSle); await _navService.NavigateTo <ShoppingListEntryViewModel, ShoppingListEntry>(newSle); }
public void Load() { ShoppingListEntries.Add(new ShoppingListEntry { Label = "Milch", Price = 0.89m, Quantity = 10, Unit = "Stck", Store = "Edeka" }); ShoppingListEntries.Add(new ShoppingListEntry { Label = "Nuss-Nougat-Creme", Price = 2.89m, Quantity = 1, Unit = "Stck", Store = "Edeka" }); ShoppingListEntries.Add( new ShoppingListEntry { Label = "Butter", Price = 0.89m, Quantity = 2, Unit = "Stck", Store = "Edeka" }); ShoppingListEntries.Add( new ShoppingListEntry { Label = "Hackfleisch", Price = 18, Quantity = 0.5, Unit = "kg", Store = "Rewe" }); }