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() }; } }
public DataRequiredOptionsViewModel(DataRequiredOption dataRequired) { DataRequired = dataRequired; DataRequiredString = DataRequiredStrings.GetDetails(dataRequired); }