示例#1
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();
 }
示例#2
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
        }
示例#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();
 }
示例#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
        }