async Task LoadItems() { IsBusy = true; try { ActivityLogs.Clear(); var activityLogs = await DataStore.GetAllActivityLogsAsync(true); foreach (var activityLog in activityLogs) { ActivityLogs.Add(activityLog); } } catch (Exception ex) { Debug.WriteLine(ex); } finally { IsBusy = false; } }
public void addActivityLog(ActivityLogData activityLog) { ActivityLogs.Add(activityLog); SaveChanges(); }