Пример #1
0
        private async void ToolbarItem_Activated(object sender, EventArgs e)
        {
            ToggleBusy(true);

            await DataUpload.CreateItemsOffline(App.offlineItems.ToList());

            load_saveddrafts();

            ToggleBusy(false);
        }
Пример #2
0
        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);
        }