Пример #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="host">host window</param>
        public DockGuider(FormWrapper host)
        {
            _host = host;
             _host.SizeChanged    += OnHostSizeChanged;
             _host.Move           += OnHostMoved;
             _host.VisibleChanged += OnHostVisibleChanged;

             _guider = new DockGuiderWrapper(_host);
        }
Пример #2
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="host">host window</param>
        public DockGuider(FormWrapper host)
        {
            _host                 = host;
            _host.SizeChanged    += OnHostSizeChanged;
            _host.Move           += OnHostMoved;
            _host.VisibleChanged += OnHostVisibleChanged;

            _guider = new DockGuiderWrapper(_host);
        }
Пример #3
0
        /// <summary>
        /// Dispose this instance
        /// </summary>
        /// <param name="fromIDisposableDispose">call from IDisposable.Dispsose</param>
        protected override void Dispose(bool fromIDisposableDispose)
        {
            if (fromIDisposableDispose)
            {
                _movedWindow = null;

                if (_guider != null)
                {
                    _guider.Dispose();
                    _guider = null;
                }
            }
        }
Пример #4
0
        /// <summary>
        /// Dispose this instance
        /// </summary>
        /// <param name="fromIDisposableDispose">call from IDisposable.Dispsose</param>
        protected override void Dispose(bool fromIDisposableDispose)
        {
            if (fromIDisposableDispose)
             {
            _movedWindow = null;

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