Esempio n. 1
0
 public ActivityTypeCreateViewModel(ActivityType activityType)
 {
     Name         = activityType.Name;
     IsAssignment = activityType.IsAssignment;
 }
Esempio n. 2
0
 public ActivityTypeEditViewModel(ActivityType activityType) : base(activityType)
 {
     DisabledString = activityType.Activities.Count == 0 ? "" : "disabled";
 }
Esempio n. 3
0
 public ActivityTypeDetailViewModel(ActivityType activityType, IEnumerable <ActivityTypeActivityViewModel> activities)
 {
     Name         = activityType.Name;
     IsAssignment = activityType.IsAssignment ? "Yes" : "No";
     Activities   = activities;
 }