//deactivate this plugin
 public override void Deactivate()
 {
     //remove ribbon tab
     App.HeaderControl.RemoveAll();
     //remove plugin panel
     App.DockManager.Remove(strPanelKey);
     _frmIPyPred = null;
     base.Deactivate();
 }
        //initial activation
        public override void Activate()
        {
            _frmIPyPred = new frmIPyPrediction();
            AddPanel();
            AddRibbon("Activate");

            //when panel is selected activate seriesview and ribbon tab
            App.DockManager.ActivePanelChanged += new EventHandler <DotSpatial.Controls.Docking.DockablePanelEventArgs>(DockManager_ActivePanelChanged);
            App.HeaderControl.RootItemSelected += new EventHandler <RootItemEventArgs>(HeaderControl_RootItemSelected);

            base.Activate(); //ensures "enabled" is set to true
        }
Exemple #3
0
 //deactivate this plugin
 public override void Deactivate()
 {
     //remove ribbon tab
     App.HeaderControl.RemoveAll();
     //remove plugin panel
     App.DockManager.Remove(strPanelKey);
     _frmIPyPred = null;
     base.Deactivate();
 }
Exemple #4
0
        //initial activation
        public override void Activate()
        {
            _frmIPyPred = new frmIPyPrediction();
            AddPanel();
            AddRibbon("Activate");

            //when panel is selected activate seriesview and ribbon tab
            App.DockManager.ActivePanelChanged += new EventHandler<DotSpatial.Controls.Docking.DockablePanelEventArgs>(DockManager_ActivePanelChanged);
            App.HeaderControl.RootItemSelected += new EventHandler<RootItemEventArgs>(HeaderControl_RootItemSelected);

            base.Activate(); //ensures "enabled" is set to true
        }