/// <summary> /// Implementation of the <see cref="IDisposable"/> pattern /// </summary> /// <param name="disposing">True if this object is being disposed, false if it is being finalized</param> protected override void Dispose(bool disposing) { if (disposing) { if (_lutComposer != null) { _lutComposer.Dispose(); } } }
/// <summary> /// Implementation of the <see cref="IDisposable"/> pattern /// </summary> /// <param name="disposing">True if this object is being disposed, false if it is being finalized</param> protected override void Dispose(bool disposing) { if (disposing) { if (_lutFactory != null) { _lutFactory.Dispose(); _lutFactory = null; } if (_lutComposer != null) { _lutComposer.Dispose(); _lutComposer = null; } } }
/// <summary> /// Implementation of the <see cref="IDisposable"/> pattern /// </summary> /// <param name="disposing">True if this object is being disposed, false if it is being finalized</param> protected virtual void Dispose(bool disposing) { _disposed = true; if (disposing) { _vtkData = null; if (_lutFactory != null) { _lutFactory.Dispose(); _lutFactory = null; } if (_lutComposer != null) { _lutComposer.LutChanged -= OnLutComposerChanged; _lutComposer.Dispose(); _lutComposer = null; } } }