/// <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.ValWTr == null)) { IValWithTrans valWTrCasted = item.As <IValWithTrans>(); if ((valWTrCasted != null)) { this._parent.ValWTr = valWTrCasted; return; } } if ((this._parent.T == null)) { ITimeStamp tCasted = item.As <ITimeStamp>(); if ((tCasted != null)) { this._parent.T = tCasted; return; } } if ((this._parent.Q == null)) { IQuality qCasted = item.As <IQuality>(); if ((qCasted != null)) { this._parent.Q = qCasted; return; } } if ((this._parent.SubVal == null)) { IValWithTrans subValCasted = item.As <IValWithTrans>(); if ((subValCasted != null)) { this._parent.SubVal = subValCasted; return; } } }
/// <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 TransIndProxy(IValWithTrans modelElement) : base(modelElement, "transInd") { }
/// <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 PosValProxy(IValWithTrans modelElement) : base(modelElement, "posVal") { }