/// <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); }
/// <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; } } }