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

            np.Show(aw.DockPanel, DockState.Document);
            return(np);
        }
Пример #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;
     }
 }
Пример #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;
     }
 }