示例#1
0
        private async void UpdateCheckedWishListItem(WishListItem item)
        {
            try
            {
                await wishListTable.UpdateAsync(item);
            }
            catch (InvalidOperationException)
            {

            }
        }
示例#2
0
        private async void InsertWishListItem(WishListItem wishListItem)
        {
            try
            {
                await wishListTable.InsertAsync(wishListItem);
                items.Add(wishListItem);
            }
            catch (Exception)
            {

            }
        }
示例#3
0
 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";
     }
 }