public LogView RequestLogView() { if (this.logView == null || this.logView.IsDisposed) { this.logView = new LogView(); this.logView.FormClosed += delegate(object sender, FormClosedEventArgs e) { this.logView = null; }; } if (!this.isLoading) { this.logView.Show(DualityEditorApp.MainForm.MainDockPanel); if (this.logView.Pane != null) { this.logView.Pane.Activate(); this.logView.Focus(); } } return this.logView; }
public LogView RequestLogView() { if (this.logView == null || this.logView.IsDisposed) { this.logView = new LogView(); this.logView.FormClosed += delegate(object sender, FormClosedEventArgs e) { this.logView = null; }; } if (!this.isLoading) { this.logView.Show(DualityEditorApp.MainForm.MainDockPanel); if (this.logView.Pane != null) { this.logView.Pane.Activate(); this.logView.Focus(); } } return(this.logView); }