コード例 #1
0
 /// <summary>
 /// Populates the <see cref="ParametricConstraint"/> property with the content of the actual thing and the content of the transaction
 /// </summary>
 protected override void PopulateParametricConstraint()
 {
     this.ParametricConstraint.Clear();
     foreach (var thing in this.Thing.ParametricConstraint.Where(t => t.ChangeKind != ChangeKind.Delete))
     {
         var row = new ParametricConstraintRowViewModel(thing, this.Session, this);
         this.ParametricConstraint.Add(row);
         row.Index = this.Thing.ParametricConstraint.IndexOf(thing);
     }
 }
コード例 #2
0
        /// <summary>
        /// Add a row representing a new <see cref="ParametricConstraint"/>
        /// </summary>
        /// <param name="constraint">The associated <see cref="ParametricConstraint"/></param>
        private void AddConstraint(ParametricConstraint constraint)
        {
            var row = new ParametricConstraintRowViewModel(constraint, this.Session, this);

            this.parametricConstraints.ContainedRows.Add(row);
        }