public HelpAdvisor RequestHelpAdvisor()
        {
            if (this.helpAdvisor == null || this.helpAdvisor.IsDisposed)
            {
                this.helpAdvisor             = new HelpAdvisor();
                this.helpAdvisor.FormClosed += delegate(object sender, FormClosedEventArgs e) { this.helpAdvisor = null; };
            }

            if (!this.isLoading)
            {
                this.helpAdvisor.Show(DualityEditorApp.MainForm.MainDockPanel);
                if (this.helpAdvisor.Pane != null)
                {
                    this.helpAdvisor.Pane.Activate();
                    this.helpAdvisor.Focus();
                }
            }

            return(this.helpAdvisor);
        }
Exemple #2
0
        public HelpAdvisor RequestHelpAdvisor()
        {
            if (this.helpAdvisor == null || this.helpAdvisor.IsDisposed)
            {
                this.helpAdvisor = new HelpAdvisor();
                this.helpAdvisor.FormClosed += delegate(object sender, FormClosedEventArgs e) { this.helpAdvisor = null; };
            }

            if (!this.isLoading)
            {
                this.helpAdvisor.Show(DualityEditorApp.MainForm.MainDockPanel);
                if (this.helpAdvisor.Pane != null)
                {
                    this.helpAdvisor.Pane.Activate();
                    this.helpAdvisor.Focus();
                }
            }

            return this.helpAdvisor;
        }