private PlotPane getOrCreateActivePane() { if (this.ActivePane == null) { this.ActivePane = this.createPane(); } return(this.ActivePane); }
private PlotPane createPane() { var aw = this.getOrCreateActiveWindow(); var np = new PlotPane(this.ContentIndex); np.Show(aw.DockPanel, DockState.Document); return(np); }
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; } }
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; } }