Exemplo n.º 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.OperationalLimitSet == null))
     {
         IOperationalLimitSet operationalLimitSetCasted = item.As <IOperationalLimitSet>();
         if ((operationalLimitSetCasted != null))
         {
             this._parent.OperationalLimitSet = operationalLimitSetCasted;
             return;
         }
     }
     if ((this._parent.OperationalLimitType == null))
     {
         IOperationalLimitType operationalLimitTypeCasted = item.As <IOperationalLimitType>();
         if ((operationalLimitTypeCasted != null))
         {
             this._parent.OperationalLimitType = operationalLimitTypeCasted;
             return;
         }
     }
 }
Exemplo n.º 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 DirectionProxy(IOperationalLimitType modelElement) :
     base(modelElement, "direction")
 {
 }