Beispiel #1
0
 /// <summary>
 /// Adds the given element to the collection
 /// </summary>
 /// <param name="item">The item to add</param>
 public override void Add(IModelElement item)
 {
     if ((this._parent.SlUnits == null))
     {
         ISlUnits slUnitsCasted = item.As <ISlUnits>();
         if ((slUnitsCasted != null))
         {
             this._parent.SlUnits = slUnitsCasted;
             return;
         }
     }
     if ((this._parent.Multiplier == null))
     {
         IMultiplier multiplierCasted = item.As <IMultiplier>();
         if ((multiplierCasted != null))
         {
             this._parent.Multiplier = multiplierCasted;
             return;
         }
     }
 }
Beispiel #2
0
 /// <summary>
 /// Creates a new observable property access proxy
 /// </summary>
 /// <param name="modelElement">The model instance element for which to create the property access proxy</param>
 public SlUnitsKindProxy(ISlUnits modelElement) :
     base(modelElement, "SlUnitsKind")
 {
 }