private async void UpdateCheckedWishListItem(WishListItem item) { try { await wishListTable.UpdateAsync(item); } catch (InvalidOperationException) { } }
private async void InsertWishListItem(WishListItem wishListItem) { try { await wishListTable.InsertAsync(wishListItem); items.Add(wishListItem); } catch (Exception) { } }
private async void ButtonSave_Click(object sender, RoutedEventArgs e) { await Authenticate(); if (item.Text != "") { loginText.Text = ""; var wishListItem = new WishListItem { Text = item.Text }; InsertWishListItem(wishListItem); RefreshWishListItems(); } else { loginText.Text = "Please enter an item"; } }