/// <inheritdoc /> protected virtual void OnAdorneeDestroyed() { if (_adornee != null) { _adornee.Destroyed.Event -= OnAdorneeDestroyed; } Adornee = null; }
/// <inheritdoc /> protected override void OnAdorneeSet(PVInstance adornee, PVInstance oldAdornee) { if (oldAdornee != null) { oldAdornee.Changed.Event -= OnAdorneeChangedEvent; } _bufferDirty = true; _boundingBoxDirty = true; //TransformLines(); if (adornee != null) { adornee.Changed.Event += OnAdorneeChangedEvent; } }
/// <inheritdoc /> public override void Destroy() { Adornee = null; base.Destroy(); }
/// <summary> /// Invoked when the <see cref="Adornee" /> property is changed. /// </summary> protected virtual void OnAdorneeSet(PVInstance newAdornee, PVInstance oldAdornee) { }
/// <inheritdoc /> protected override void OnAdorneeSet(PVInstance newAdornee, PVInstance oldAdornee) { base.OnAdorneeSet(newAdornee, oldAdornee); ChangeRenderObject(); }