コード例 #1
0
 public TaskDetailsViewModel(NavigationTarget target)
 {
     if (target is TaskDetailsTarget)
     {
         LoadData((target as TaskDetailsTarget).TaskId);
     }
     if (target is CommentTarget)
     {
         LoadData((target as CommentTarget).TaskId);
         _selectedComment = Comments.FirstOrDefault(x => x.Id == (target as CommentTarget).CommentId);
     }
 }
コード例 #2
0
 public TaskDetailsViewModel(long taskId, long commentId)
 {
     LoadData(taskId);
     _selectedComment = Comments.FirstOrDefault(x => x.Id == commentId);
 }