예제 #1
0
        public override void Deactivate()
        {
            App.HeaderControl.RemoveAll();
            App.DockManager.Remove(kTableView);

            App.HeaderControl.RootItemSelected -= HeaderControl_RootItemSelected;
            App.DockManager.ActivePanelChanged -= DockManager_ActivePanelChanged;

            tableViewControl         = null;
            SeriesControl.Refreshed -= SeriesControl_Refreshed;

            base.Deactivate();
        }
예제 #2
0
        //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(this)
            {
                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;
        }