Esempio n. 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);
			
			HookDockContents();
		}
Esempio n. 2
0
		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;
				}
			}
		}
Esempio n. 3
0
		private void ViewProperties_Click(object sender, EventArgs e) {
			if (propertiesWindow == null)
			{
				propertiesWindow = new PropertiesWindow();
				propertiesWindow.Show(projectExplorer.Pane, DockAlignment.Bottom | DockAlignment.Left, .7);
				HookDockContents();
			}
			else 
			{
				propertiesWindow.Show();
			}
		}