Exemple #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.OpTmh == null))
     {
         IINS opTmhCasted = item.As <IINS>();
         if ((opTmhCasted != null))
         {
             this._parent.OpTmh = opTmhCasted;
             return;
         }
     }
     if ((this._parent.Pos == null))
     {
         IDPC posCasted = item.As <IDPC>();
         if ((posCasted != null))
         {
             this._parent.Pos = posCasted;
             return;
         }
     }
     if ((this._parent.BlkOpn == null))
     {
         ISPC blkOpnCasted = item.As <ISPC>();
         if ((blkOpnCasted != null))
         {
             this._parent.BlkOpn = blkOpnCasted;
             return;
         }
     }
     if ((this._parent.BlkCls == null))
     {
         ISPC blkClsCasted = item.As <ISPC>();
         if ((blkClsCasted != null))
         {
             this._parent.BlkCls = blkClsCasted;
             return;
         }
     }
     if ((this._parent.ChaMotEna == null))
     {
         ISPC chaMotEnaCasted = item.As <ISPC>();
         if ((chaMotEnaCasted != null))
         {
             this._parent.ChaMotEna = chaMotEnaCasted;
             return;
         }
     }
 }
Exemple #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 CtlValProxy(IDPC modelElement) :
     base(modelElement, "ctlVal")
 {
 }