/// <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.TapChg == null)) { IBSC tapChgCasted = item.As <IBSC>(); if ((tapChgCasted != null)) { this._parent.TapChg = tapChgCasted; return; } } if ((this._parent.RCol == null)) { ISPC rColCasted = item.As <ISPC>(); if ((rColCasted != null)) { this._parent.RCol = rColCasted; return; } } if ((this._parent.LCol == null)) { ISPC lColCasted = item.As <ISPC>(); if ((lColCasted != null)) { this._parent.LCol = lColCasted; return; } } }
/// <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; } } }
/// <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.DExt == null)) { ISPC dExtCasted = item.As <ISPC>(); if ((dExtCasted != null)) { this._parent.DExt = dExtCasted; return; } } if ((this._parent.LosOil == null)) { ISPS losOilCasted = item.As <ISPS>(); if ((losOilCasted != null)) { this._parent.LosOil = losOilCasted; return; } } if ((this._parent.LosVac == null)) { ISPS losVacCasted = item.As <ISPS>(); if ((losVacCasted != null)) { this._parent.LosVac = losVacCasted; return; } } if ((this._parent.PresAlm == null)) { ISPS presAlmCasted = item.As <ISPS>(); if ((presAlmCasted != null)) { this._parent.PresAlm = presAlmCasted; return; } } }
/// <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.AutoUpLod == null)) { ISPC autoUpLodCasted = item.As <ISPC>(); if ((autoUpLodCasted != null)) { this._parent.AutoUpLod = autoUpLodCasted; return; } } if ((this._parent.DltRcd == null)) { ISPC dltRcdCasted = item.As <ISPC>(); if ((dltRcdCasted != null)) { this._parent.DltRcd = dltRcdCasted; return; } } }
/// <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.CapDS == null)) { ISPC capDSCasted = item.As <ISPC>(); if ((capDSCasted != null)) { this._parent.CapDS = capDSCasted; return; } } if ((this._parent.DschBlk == null)) { ISPS dschBlkCasted = item.As <ISPS>(); if ((dschBlkCasted != null)) { this._parent.DschBlk = dschBlkCasted; return; } } if ((this._parent.CapControl == null)) { IARCO capControlCasted = item.As <IARCO>(); if ((capControlCasted != null)) { this._parent.CapControl = capControlCasted; 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 SubValProxy(ISPC modelElement) : base(modelElement, "subVal") { }
/// <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(ISPC modelElement) : base(modelElement, "ctlVal") { }