/// <summary> /// Adds the given element to the collection /// </summary> /// <param name="item">The item to add</param> public override void Add(IModelElement item) { IRemoteUnit remoteUnitsCasted = item.As <IRemoteUnit>(); if ((remoteUnitsCasted != null)) { this._parent.RemoteUnits.Add(remoteUnitsCasted); } }
/// <summary> /// Removes the given item from the collection /// </summary> /// <returns>True, if the item was removed, otherwise False</returns> /// <param name="item">The item that should be removed</param> public override bool Remove(IModelElement item) { IRemoteUnit remoteUnitItem = item.As <IRemoteUnit>(); if (((remoteUnitItem != null) && this._parent.RemoteUnits.Remove(remoteUnitItem))) { return(true); } return(false); }
/// <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.RemoteUnit == null)) { IRemoteUnit remoteUnitCasted = item.As <IRemoteUnit>(); if ((remoteUnitCasted != null)) { this._parent.RemoteUnit = remoteUnitCasted; 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 RemoteUnitTypeProxy(IRemoteUnit modelElement) : base(modelElement, "remoteUnitType") { }