private async Task UpdateModelAsync() { await DialogService.DisplayPopupAsync(); await SetSelectableStatesAsync(); ResetNewItemCommand.Execute(null); ResetSearchItem(); ShowItemsCommand.Execute(null); await DialogService.PopAsync(); }
private async Task CreateItemAsync() { if (!await CanCreateItemAsync()) { return; } await DialogService.DisplayPopupAsync(); await FirebaseService.InsertItemAsync(NewItem); ResetNewItemCommand.Execute(null); await ShowItemsAsync(); await DialogService.PopAsync(); }
private async Task SaveItemAsync() { if (!await CanSaveItemAsync()) { return; } await DialogService.DisplayPopupAsync(); await FirebaseService.UpdateItemAsync(EditItem); var i = Category.Items.IndexOf(Category.Items.FirstOrDefault(x => x.ItemID == EditItem.ItemID)); Category.Items[i] = EditItem; ResetNewItemCommand.Execute(null); await DialogService.DisplayPopupAsync(); }
private void ResetPanelItems() { ResetNewItemCommand.Execute(null); ResetSearchItemCommand.Execute(null); }