public SampleDataRow(SampleDataEditorModel model, int rowNumber) { this.Model = model; this.RowNumber = rowNumber; this.Cells = new List <SampleDataCellValue>(this.Model.SampleDataProperties.Count); foreach (SampleDataProperty property in (IEnumerable <SampleDataProperty>) this.Model.SampleDataProperties) { this.Cells.Add(new SampleDataCellValue(this, property)); } }
public SampleDataProperty(SampleProperty sampleProperty, SampleDataEditorModel model) { this.SampleProperty = sampleProperty; this.Model = model; this.SampleTypeConfiguration = new SampleDataPropertyConfiguration(sampleProperty); }