Example #1
0
 private PlotPane getOrCreateActivePane()
 {
     if (this.ActivePane == null)
     {
         this.ActivePane = this.createPane();
     }
     return(this.ActivePane);
 }
Example #2
0
        private PlotPane createPane()
        {
            var aw = this.getOrCreateActiveWindow();
            var np = new PlotPane(this.ContentIndex);

            np.Show(aw.DockPanel, DockState.Document);
            return(np);
        }
Example #3
0
 public void NewWindow()
 {
     if (_main_form.InvokeRequired)
     {
         _main_form.BeginInvoke(new Action(this.NewWindow));
     }
     else
     {
         var dw = this.createWindow();
         this.ActiveWindow = dw;
         this.ActivePane   = null;
     }
 }
Example #4
0
 public void NewPane()
 {
     if (_main_form.InvokeRequired)
     {
         _main_form.BeginInvoke(new Action(this.NewPane));
     }
     else
     {
         var np = new PlotPane(this.ContentIndex);
         var aw = this.getOrCreateActiveWindow();
         np.Show(aw.DockPanel, DockState.Document);
         this.ActivePane = np;
     }
 }