예제 #1
0
        public void SetSmallTaskInfo()
        {
            try
            {
                List <EachTask> smallEachTaskList = EachTaskModel.GetSpecificTaskSmallTasks(SelectedEachTaskId);

                SmallTaskListData.Clear();

                smallEachTaskList?.ForEach(eachSmallTask =>
                {
                    SmallTaskInfo smallTaskInfo = new SmallTaskInfo()
                    {
                        EachTaskId       = eachSmallTask.EachTaskId,
                        ParentEachTaskId = SelectedEachTaskId,
                        Content          = eachSmallTask.Content,
                        IsComplete       = eachSmallTask.CompleteFlag
                    };

                    SmallTaskListData.Add(smallTaskInfo);
                });
            }
            catch
            {
                CommonViewModel.NotifySystemMessage(GetLangMessage.GetMessage("Exception"));
            }
        }
예제 #2
0
        public void SetSmallTaskInfo()
        {
            List <EachTask> smallEachTaskList = EachTaskModel.GetSpecificTaskSmallTasks(SelectedEachTaskId);

            SmallTaskListData.Clear();

            smallEachTaskList.ForEach(eachSmallTask =>
            {
                SmallTaskInfo smallTaskInfo = new SmallTaskInfo()
                {
                    EachTaskId       = eachSmallTask.EachTaskId,
                    ParentEachTaskId = SelectedEachTaskId,
                    Content          = eachSmallTask.Content,
                    IsComplete       = eachSmallTask.CompleteFlag
                };

                SmallTaskListData.Add(smallTaskInfo);
            });
        }