/// <summary> /// Populates the <see cref="SimpleParameterValue"/> list with the parameter values of this <see cref="Requirement"/>. /// </summary> protected void PopulateSimpleParameterValues() { this.SimpleParameterValue.Clear(); foreach (var thing in this.Thing.ParameterValue.Where(t => t.ChangeKind != ChangeKind.Delete)) { var row = new SimpleParameterValueRowViewModel(thing, this.Session, this); this.SimpleParameterValue.Add(row); } }
/// <summary> /// Add a row representing a new <see cref="SimpleParameterValue"/> /// </summary> /// <param name="value">The associated <see cref="SimpleParameterValue"/></param> private void AddValue(SimpleParameterValue value) { var row = new SimpleParameterValueRowViewModel(value, this.Session, this); this.simpleParameters.ContainedRows.Add(row); }