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")); } }
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); }); }