/// <summary>
        /// Dispose this instance
        /// </summary>
        /// <param name="fromIDisposableDispose">call from IDisposable.Dispose</param>
        protected override void Dispose(bool fromIDisposableDispose)
        {
            if (fromIDisposableDispose)
            {
                if (_previewGuider != null)
                {
                    _previewGuider.Dispose();
                    _previewGuider = null;
                }

                if (_centerGuider != null)
                {
                    _centerGuider.Dispose();
                    _centerGuider = null;
                }

                if (_marginGuiders != null)
                {
                    _marginGuiders.Dispose();
                    _marginGuiders = null;
                }
            }
        }
예제 #2
0
      /// <summary>
      /// Dispose this instance
      /// </summary>
      /// <param name="fromIDisposableDispose">call from IDisposable.Dispose</param>
      protected override void Dispose(bool fromIDisposableDispose)
      {
         if (fromIDisposableDispose)
         {
            if (_previewGuider != null)
            {
               _previewGuider.Dispose();
               _previewGuider = null;
            }

            if (_centerGuider != null)
            {
               _centerGuider.Dispose();
               _centerGuider = null;
            }

            if (_marginGuiders != null)
            {
               _marginGuiders.Dispose();
               _marginGuiders = null;
            }
         }
      }