コード例 #1
0
		private void CreateDockWindows() {
			outputWindow = new OutputWindow();
			outputWindow.Show(dockPanel1, DockState.DockBottomAutoHide);

			projectExplorer = new ProjectExplorer();
			projectExplorer.Show(dockPanel1, DockState.DockLeft);

			propertiesWindow = new PropertiesWindow();
			propertiesWindow.Show(projectExplorer.Pane, DockAlignment.Bottom | DockAlignment.Left, .7);
			
			searchTextDialog = new SearchTextDialog();
			
			HookDockContents();
		}
コード例 #2
0
		private void SearchText_Click(object sender, EventArgs e) 
		{
			if (searchTextDialog == null || searchTextDialog.IsDisposed)
			{
				searchTextDialog = new SearchTextDialog();
				searchTextDialog.HideOnClose = true;
			}
			if (searchTextDialog.VisibleState == DockState.Unknown)
			{
				searchTextDialog.Show(dockPanel1, DockState.Float);
				searchTextDialog.Pane.FloatWindow.Size = searchTextDialog.MinimumSize;
			}
			searchTextDialog.Activate();
		}