예제 #1
0
      /// <summary>
      /// Constructor
      /// </summary>
      /// <param name="host">host</param>
      public DockGuiderWrapper(FormWrapper host)
      {
         _host = host;

         _marginGuiders = new MarginDockButtons(host);
         _centerGuider  = new CenterDockButtons(host);
      }
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="host">host</param>
        public DockGuiderWrapper(FormWrapper host)
        {
            _host = host;

            _marginGuiders = new MarginDockButtons(host);
            _centerGuider  = new CenterDockButtons(host);
        }
        /// <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;
                }
            }
        }
예제 #4
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;
            }
         }
      }