async Task ExecuteLoadVendorsCommand() { if (IsBusy) { return; } IsBusy = true; try { Vendors.Clear(); IEnumerable <Vendor> vendors = await App.Database.GetDataAsync <Vendor>(); foreach (var vendor in vendors) { Vendors.Add(vendor); } } catch (Exception ex) { Debug.WriteLine(ex); } finally { IsBusy = false; } }
public static async Task ReloadData() { Vendors.Clear(); Fuelings.Clear(); Summary.Clear(); await InitData(silent : true); }