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