Пример #1
0
		// フォームロードイベント。起動時にコンストラクタの次に実行される
		private void MainForm_Load(object sender, EventArgs e)
			{
			Application.CurrentUndoDepthChanged += Application_CurrentUndoDepthChanged;
			Application.ProjectValidated += (_sender, _e) => { RefreshRender(); };

			ProjectExplorer = new Forms.ProjectExplorer( this );
			ProjectExplorer.Show( dockPanel, DockState.DockLeft );
			ProjectExplorer.IsHiddenChanged += ProjectExplorer_IsHiddenChanged;

			StructureViewer = new Forms.StructureViewer( this );
			StructureViewer.Show( dockPanel, DockState.Document );
			StructureViewer.IsHiddenChanged += StructureViewer_IsHiddenChanged;

			PropertyEditor = new Forms.PropertyEditor( this );
			PropertyEditor.Show( dockPanel, DockState.DockRight );
			PropertyEditor.IsHiddenChanged += PropertyEditor_IsHiddenChanged;

			Application.OpenedProject = Application.OpenedProject;
			StructureViewer.MoveViewToPerspective();
			RefreshRender();
			}