コード例 #1
0
 public async void OnOperationCompletion(List <ZTask> ZtaskList)
 {
     await CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
     {
         Ztasks.Clear();
         foreach (ZTask task in ZtaskList)
         {
             Ztasks.Add(task);
         }
     });
 }
コード例 #2
0
        public async void OnTasksFetchedSuccessfully(List <ZTask> ZtaskList)
        {
            await CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(Windows.UI.Core.CoreDispatcherPriority.Normal, () =>
            {
                Ztasks.Clear();
                Display(ZtaskList);

                //Today.Clear();
                //Upcoming.Clear();
                //Delayed.Clear();
                //AssignedToOthers.Clear();
                //Home.Clear();
                //AddElementsToCollection(ZtaskList);
            });
        }
コード例 #3
0
 public void DisplayDelayedTasks()
 {
     Ztasks.Clear();
     ConvertListData(Delayed);
 }
コード例 #4
0
 public void DisplayUpcomingTasks()
 {
     Ztasks.Clear();
     ConvertListData(Upcoming);
 }
コード例 #5
0
 public void DisplayTasksAssignedToOthers()
 {
     Ztasks.Clear();
     ConvertListData(AssignedToOthers);
 }
コード例 #6
0
 public void DisplayTasksForToday()
 {
     Ztasks.Clear();
     ConvertListData(Today);
 }
コード例 #7
0
 public void DisplayMyTasks()
 {
     Ztasks.Clear();
     ConvertListData(Home);
 }