/// <summary> /// Method. /// </summary> /// <param name=""></param> /// <returns>Makes the Window into a dockable window</returns> public void MakeDockable() { Win32Window window = new Win32Window(_windowID); switch (Type) { case WindowType.Browser: _dockableWindow = new DockableWindowForm(window); break; case WindowType.CartographicLegend: _dockableWindow = new DockableWindowForm(window); break; case WindowType.LegendDesigner: _dockableWindow = new DockableWindowForm(window); break; case WindowType.Graph: _dockableWindow = new DockableWindowForm(window); break; case WindowType.Layout: _dockableWindow = new DockableWindowForm(window); break; case WindowType.Mapper: _dockableWindow = new DockableWindowForm(window); break; case WindowType.Mapper3D: _dockableWindow = new DockableWindowForm(window); break; default: _dockableWindow = new DockableWindowForm(window, window.Title); break; } }
/// <summary> /// Method. /// </summary> /// <param name=""></param> /// <returns>Closes the Window</returns> public void Close(bool interactive) { if (IsMadeDockable() == true) { _dockableWindow.Close(); _dockableWindow = null; } if (interactive == true) InteropHelper.Do(string.Format("Close Window {0} Interactive", _windowID)); else InteropHelper.Do(string.Format("Close Window {0}", _windowID)); }