예제 #1
0
 /// <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();
         }
     }
 }
예제 #2
0
        /// <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;
                }
            }
        }
예제 #3
0
        /// <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;
                }
            }
        }