/// <summary> /// Adds the given element to the collection /// </summary> /// <param name="item">The item to add</param> public override void Add(IModelElement item) { IStructureSupportInfo structureSupportInfosCasted = item.As <IStructureSupportInfo>(); if ((structureSupportInfosCasted != null)) { this._parent.StructureSupportInfos.Add(structureSupportInfosCasted); } IMountingConnection mountingConnectionsCasted = item.As <IMountingConnection>(); if ((mountingConnectionsCasted != null)) { this._parent.MountingConnections.Add(mountingConnectionsCasted); } }
/// <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) { IStructureSupportInfo structureSupportInfoItem = item.As <IStructureSupportInfo>(); if (((structureSupportInfoItem != null) && this._parent.StructureSupportInfos.Remove(structureSupportInfoItem))) { return(true); } IMountingConnection mountingConnectionItem = item.As <IMountingConnection>(); if (((mountingConnectionItem != null) && this._parent.MountingConnections.Remove(mountingConnectionItem))) { return(true); } return(false); }
/// <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 KindProxy(IStructureSupportInfo modelElement) : base(modelElement, "kind") { }
/// <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 AnchorKindProxy(IStructureSupportInfo modelElement) : base(modelElement, "anchorKind") { }