private async void ToolbarItem_Activated(object sender, EventArgs e) { ToggleBusy(true); await DataUpload.CreateItemsOffline(App.offlineItems.ToList()); load_saveddrafts(); ToggleBusy(false); }
public static async Task <int> SyncOfflineItems() { var eValue = App.DAUtil.GetAll <OfflineItem>("OfflineItem"); if (eValue != null && eValue.Count > 0) { return(await DataUpload.CreateItemsOffline(eValue)); } return(0); }