public Control GetDockPanelObject(DefaultDockPanel panel) { switch (panel) { case DefaultDockPanel.Legend: return(_legendPresenter.Legend as Control); case DefaultDockPanel.Toolbox: return(_toolboxPresenter.View); case DefaultDockPanel.Locator: return(_locator != null?_locator.GetInternalObject() : null); default: throw new ArgumentOutOfRangeException("panel"); } }
public DockPanel AddPanel() { // ((IdentifierDockPanel)_presenter.GetInternalObject()).LinkMap(); return(_context.DockPanels.Add(_presenter.GetInternalObject() as IDockPanelView, _plugin.Identity)); }