コード例 #1
0
        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;
            }
        }
コード例 #2
0
 public void addActivityLog(ActivityLogData activityLog)
 {
     ActivityLogs.Add(activityLog);
     SaveChanges();
 }