private void HookDockContents() { foreach(DockContent content in dockPanel1.Contents) { if (content is ProjectExplorer) { projectExplorer = (ProjectExplorer) content; tvwProject = projectExplorer.TvwProject; tvwProject.AfterSelect += new TreeViewEventHandler(tvwProject_AfterSelect); tvwProject.DoubleClick += new EventHandler(tvwProject_DoubleClick); tvwProject.MouseDown += new MouseEventHandler(tvwProject_MouseDown); } else if (content is PropertiesWindow) { propertiesWindow = (PropertiesWindow) content; propertyGrid = propertiesWindow.propertyGrid; propertyGrid.PropertyValueChanged += new PropertyValueChangedEventHandler(propertyGrid_PropertyValueChanged); propertyGrid.Validated += new EventHandler(propertyGrid_Validated); } else if (content is OutputWindow) { outputWindow = (OutputWindow) content; txtOutput = outputWindow.TxtOutput; } } }
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); HookDockContents(); }