示例#1
0
 public override void Initialize(uFrame.IOC.UFrameContainer container)
 {
     container.AddItem <BindingsReference>();
     container.AddTypeItem <CommandsChildItem>();
     container.AddItem <TransitionsChildItem>();
     container.AddItem <HandlersReference>();
     container.AddTypeItem <PropertiesChildItem>();
     container.AddItem <SubPropertiesReference>();
     container.AddTypeItem <InstancesReference>();
     container.AddItem <StateTransitionsReference>();
     container.AddTypeItem <CollectionsChildItem>();
     Service = container.AddNode <ServiceNode, ServiceNodeViewModel, ServiceNodeDrawer>("Service");
     Service.Inheritable();
     Service.Color(NodeColor.Manganeseblue);
     Service.HasSubNode <SimpleClassNode>();
     ComputedProperty = container.AddNode <ComputedPropertyNode, ComputedPropertyNodeViewModel, ComputedPropertyNodeDrawer>("ComputedProperty");
     ComputedProperty.Inheritable();
     ComputedProperty.Color(NodeColor.Green);
     SimpleClass = container.AddNode <SimpleClassNode, SimpleClassNodeViewModel, SimpleClassNodeDrawer>("SimpleClass");
     SimpleClass.Inheritable();
     SimpleClass.Color(NodeColor.Salmon2);
     SubSystem = container.AddGraph <SubSystemGraph, SubSystemNode>("SubSystemGraph");
     SubSystem.Color(NodeColor.Blue);
     SubSystem.HasSubNode <ServiceNode>();
     SubSystem.HasSubNode <SimpleClassNode>();
     SubSystem.HasSubNode <ElementNode>();
     SubSystem.HasSubNode <CommandNode>();
     View = container.AddNode <ViewNode, ViewNodeViewModel, ViewNodeDrawer>("View");
     View.Inheritable();
     View.Color(NodeColor.Royalblue2);
     SceneType = container.AddNode <SceneTypeNode, SceneTypeNodeViewModel, SceneTypeNodeDrawer>("SceneType");
     SceneType.Inheritable();
     SceneType.Color(NodeColor.SgiBeet);
     Element = container.AddNode <ElementNode, ElementNodeViewModel, ElementNodeDrawer>("Element");
     Element.Inheritable();
     Element.Color(NodeColor.Violetred2);
     Element.HasSubNode <SimpleClassNode>();
     Element.HasSubNode <ViewNode>();
     Element.HasSubNode <CommandNode>();
     Element.HasSubNode <ComputedPropertyNode>();
     Element.HasSubNode <ViewComponentNode>();
     Element.HasSubNode <StateMachineNode>();
     Command = container.AddNode <CommandNode, CommandNodeViewModel, CommandNodeDrawer>("Command");
     Command.Inheritable();
     Command.Color(NodeColor.Indianred4);
     State = container.AddNode <StateNode, StateNodeViewModel, StateNodeDrawer>("State");
     State.Color(NodeColor.Lightgoldenrod3);
     MVVM = container.AddGraph <MVVMGraph, MVVMNode>("MVVMGraph");
     MVVM.Color(NodeColor.DarkGray);
     MVVM.HasSubNode <SimpleClassNode>();
     MVVM.HasSubNode <SubSystemNode>();
     MVVM.HasSubNode <SceneTypeNode>();
     MVVM.HasSubNode <ServiceNode>();
     ViewComponent = container.AddNode <ViewComponentNode, ViewComponentNodeViewModel, ViewComponentNodeDrawer>("ViewComponent");
     ViewComponent.Inheritable();
     ViewComponent.Color(NodeColor.SgiLightBlue);
     StateMachine = container.AddNode <StateMachineNode, StateMachineNodeViewModel, StateMachineNodeDrawer>("StateMachine");
     StateMachine.Inheritable();
     StateMachine.Color(NodeColor.Carrot);
     StateMachine.HasSubNode <StateNode>();
     container.Connectable <ComputedPropertyNode, TransitionsChildItem>();
     container.Connectable <ComputedPropertyNode, BindingsReference>();
     container.Connectable <ViewNode, ViewComponentNode>();
     container.Connectable <ViewNode, ViewNode>();
     container.Connectable <ElementNode, InstancesReference>();
     container.Connectable <ElementNode, Element>();
     container.Connectable <StartState, StateNode>();
     container.Connectable <CommandsChildItem, TransitionsChildItem>();
     container.Connectable <CommandsChildItem, BindingsReference>();
     container.Connectable <TransitionsChildItem, StateTransitionsReference>();
     container.Connectable <HandlersReference, SimpleClassNode>();
     container.Connectable <PropertiesChildItem, StateMachineNode>();
     container.Connectable <PropertiesChildItem, SubPropertiesReference>();
     container.Connectable <PropertiesChildItem, SceneProperties>();
     container.Connectable <PropertiesChildItem, BindingsReference>();
     container.Connectable <PropertiesChildItem, ComputedPropertyNode>();
     container.Connectable <StateTransitionsReference, StateNode>();
     container.Connectable <CollectionsChildItem, BindingsReference>();
     container.Connectable <PropertiesChildItem, BindingsReference>();
     container.Connectable <PropertiesChildItem, ComputedPropertyNode>();
     container.Connectable <PropertiesChildItem, SubPropertiesReference>();
     container.Connectable <PropertiesChildItem, BindingsReference>();
     container.Connectable <PropertiesChildItem, SceneProperties>();
     container.Connectable <PropertiesChildItem, StateMachineNode>();
     container.Connectable <CollectionsChildItem, BindingsReference>();
 }