コード例 #1
0
        public void Display(List <ZTask> ZtaskList)
        {
            switch (taskView)
            {
            case TaskView.Home:
                Home.Clear();
                Home = ZtaskList;
                DisplayMyTasks();
                break;

            case TaskView.Today:
                Today.Clear();
                Today = ZtaskList;
                DisplayTasksForToday();
                break;

            case TaskView.Upcoming:
                Upcoming.Clear();
                Upcoming = ZtaskList;
                DisplayUpcomingTasks();
                break;

            case TaskView.Delayed:
                Delayed.Clear();
                Delayed = ZtaskList;
                DisplayDelayedTasks();
                break;

            case TaskView.AssignedToOthers:
                AssignedToOthers.Clear();
                AssignedToOthers = ZtaskList;
                DisplayTasksAssignedToOthers();
                break;
            }
        }