Inheritance: WeifenLuo.WinFormsUI.Docking.DockContent, IHelpProvider, IToolTipProvider
コード例 #1
0
ファイル: ProjectViewPlugin.cs プロジェクト: pyneer/case
        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);
        }
コード例 #2
0
		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;
		}