public override void Deactivate() { App.HeaderControl.RemoveAll(); App.DockManager.Remove(kTableView); tableViewControl = null; if (SeriesControl != null) { SeriesControl.Refreshed -= SeriesControl_Refreshed; } base.Deactivate(); }
//void DockManager_PanelAdded(object sender, DockablePanelEventArgs e) //{ // //the 'Table' dockable panel should follow after 'Map' // if (e.ActivePanelKey == "kMap") // AddTableViewPanel(); //} void AddTableViewPanel() { // Add "Table View Plugin" dock panel to the SeriesView tableViewControl = new cTableView(SeriesControl) { Dock = DockStyle.Fill }; var tableViewPanel = new DockablePanel { Key = kTableView, Caption = _tablePanelName, InnerControl = tableViewControl, Dock = DockStyle.Fill, DefaultSortOrder = 10 }; App.DockManager.Add(tableViewPanel); App.DockManager.ActivePanelChanged += DockManager_ActivePanelChanged; }