private async Task IsDone() { var changes = new IBTItem(); try { changes = lines.Where(x => x.ItemQtyIn == 0).First(); } catch (InvalidOperationException) { message.DisplayMessage("Sending data...",true); await Complete(); } }
private async void ListViewItems_ItemSelected(object sender, SelectedItemChangedEventArgs e) { IBTItem ite = e.SelectedItem as IBTItem; string output = await DisplayActionSheet("Remove this item?", "YES", "NO"); switch (output) { case "NO": break; case "YES": items.Remove(ite); ListViewItems.ItemsSource = null; ListViewItems.ItemsSource = items; if (items.Count == 0) { btnComplete.IsVisible = false; } txfScannedItem.Focus(); break; } }
private async Task IsDone() { var changes = new IBTItem(); try { changes = lines.Where(x => x.ItemQtyIn == 0).First(); } catch (InvalidOperationException) { if (Connectivity.NetworkAccess == NetworkAccess.Internet) { message.DisplayMessage("Sending data...", true); await Complete(); } else { Vibration.Vibrate(); message.DisplayMessage("No Internet Connection", true); } } }
public Task <int> Update(IBTItem data) { return(database.UpdateAsync(data)); }
public Task <int> Delete(IBTItem h) { return(database.DeleteAsync(h)); }
public Task <int> Insert(IBTItem data) { return(database.InsertAsync(data)); }