Beispiel #1
0
 public ParticipantSummaryViewModel(ParticipantsSummary summary)
 {
     ColHeaders = new ObservableCollection <string>(summary.ColHeaders.Select(c => ParticipantBaseModel.GetTrialArmDescription(c)));
     Row        = new ParticipantSummaryRowViewModel[summary.RowHeaders.Length];
     for (var i = 0; i < Row.Length; i++)
     {
         Row[i] = new ParticipantSummaryRowViewModel
         {
             RowHeader    = DataRequiredStrings.GetDetails(summary.RowHeaders[i]),
             SummaryCells = summary.Participants[i].Select(p => new ParticipantSummaryItemViewModel(p)).ToList()
         };
     }
 }
Beispiel #2
0
 public DataRequiredOptionsViewModel(DataRequiredOption dataRequired)
 {
     DataRequired       = dataRequired;
     DataRequiredString = DataRequiredStrings.GetDetails(dataRequired);
 }