コード例 #1
0
      /// <summary>
      /// Constructor
      /// </summary>
      /// <param name="host">host</param>
      public DockGuiderWrapper(FormWrapper host)
      {
         _host = host;

         _marginGuiders = new MarginDockButtons(host);
         _centerGuider  = new CenterDockButtons(host);
      }
コード例 #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="host">host</param>
        public DockGuiderWrapper(FormWrapper host)
        {
            _host = host;

            _marginGuiders = new MarginDockButtons(host);
            _centerGuider  = new CenterDockButtons(host);
        }
コード例 #3
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;
                }
            }
        }
コード例 #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;
            }
         }
      }