示例#1
0
        /// <summary>
        /// Dispose the current instance
        /// </summary>
        /// <param name="fromIDisposableDispose">dispose was called from IDisposable.Dispose</param>
        protected override void Dispose(bool fromIDisposableDispose)
        {
            if (fromIDisposableDispose)
            {
                _dockFillGuider.Dispose();
                _dockFillGuider = null;

                _dockRightGuider.Dispose();
                _dockRightGuider = null;

                _dockBottomGuider.Dispose();
                _dockBottomGuider = null;

                _dockLeftGuider.Dispose();
                _dockLeftGuider = null;

                _dockTopGuider.Dispose();
                _dockTopGuider = null;
            }
        }
      /// <summary>
      /// Dispose the current instance
      /// </summary>
      /// <param name="fromIDisposableDispose">dispose was called from IDisposable.Dispose</param>
      protected override void Dispose(bool fromIDisposableDispose)
      {
         if (fromIDisposableDispose)
         {
            _dockFillGuider.Dispose();
            _dockFillGuider = null;

            _dockRightGuider.Dispose();
            _dockRightGuider = null;

            _dockBottomGuider.Dispose();
            _dockBottomGuider = null;

            _dockLeftGuider.Dispose();
            _dockLeftGuider = null;

            _dockTopGuider.Dispose();
            _dockTopGuider = null;
         }
      }