예제 #1
0
 public static BaseTaskVm GetTaskVmFromTask(Task task, TasksPageVm parentVm)
 {
     if (task.TaskType == TaskTypeEnum.Simple)
     {
         return(new SimpleTaskVm(task, parentVm));
     }
     if (task.TaskType == TaskTypeEnum.Progress)
     {
         return(new ProgressTaskVm(task, parentVm));
     }
     return(null);
 }
예제 #2
0
 public BaseTaskVm(Task task, TasksPageVm parentVm)
 {
     Task     = task;
     ParentVm = parentVm;
 }