/// <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.Scaler_unit == null)) { IScal_unit_type scaler_unitCasted = item.As <IScal_unit_type>(); if ((scaler_unitCasted != null)) { this._parent.Scaler_unit = scaler_unitCasted; 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 UnitProxy(IScal_unit_type modelElement) : base(modelElement, "Unit") { }
/// <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 ScalerProxy(IScal_unit_type modelElement) : base(modelElement, "scaler") { }