Ejemplo n.º 1
0
		public void Install(IWorkspace workspace)
		{
			// Add parts

			arGraph = new ActiveRecordGraphView(_model);
			arGraph.ParentWorkspace = workspace;

			outView = new OutputView(_model);
			outView.ParentWorkspace = workspace;

			projExplorer = new ProjectExplorer(_model);
			projExplorer.ParentWorkspace = workspace;

			avaShapes = new AvailableShapes(_model);
			avaShapes.ParentWorkspace = workspace;

			// Register Actions
			
			FileActionGroup group1 = new FileActionGroup();
			group1.Init(_model);
			group1.Install(workspace);

			ViewActionSet group2 = new ViewActionSet(arGraph, outView, projExplorer, avaShapes);
			group2.Init(_model);
			group2.Install(workspace);

			HelpActionSet group3 = new HelpActionSet();
			group3.Init(_model);
			group3.Install(workspace);

		}
Ejemplo n.º 2
0
		public ViewActionSet(ActiveRecordGraphView graph, OutputView outputview, 
			ProjectExplorer explorer, AvailableShapes shapes)
		{
			_graph = graph;
			_outputview = outputview;
			_explorer = explorer;
			_shapes = shapes;
		}