当前位置: 首页>>代码示例>>C#>>正文


C# IContextRegistry类代码示例

本文整理汇总了C#中IContextRegistry的典型用法代码示例。如果您正苦于以下问题:C# IContextRegistry类的具体用法?C# IContextRegistry怎么用?C# IContextRegistry使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IContextRegistry类属于命名空间,在下文中一共展示了IContextRegistry类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: PropertyEditor

 public PropertyEditor(
     IControlHostService controlHostService,
     IContextRegistry contextRegistry)
 {
     ControlHostService = controlHostService;
     ContextRegistry = contextRegistry;
 }
开发者ID:sbambach,项目名称:ATF,代码行数:7,代码来源:PropertyEditor.cs

示例2: GameEditor

 public GameEditor(
     IContextRegistry contextRegistry,
     IDocumentRegistry documentRegistry,            
     IControlHostService controlHostService,
     ICommandService commandService,
     IDocumentService documentService,
     IPaletteService paletteService,
     ISettingsService settingsService,            
     IResourceService resourceService,
     LevelEditorCore.ResourceLister resourceLister,            
     BookmarkLister bookmarkLister
     )
 {
     m_contextRegistry = contextRegistry;
     m_documentRegistry = documentRegistry;
     m_paletteService = paletteService;
     m_settingsService = settingsService;            
     m_documentService = documentService;            
     m_resourceService = resourceService;
     m_resourceLister = resourceLister;            
     m_bookmarkLister = bookmarkLister;
     
     //to-do wire it to to command service
     InputScheme.ActiveControlScheme = new MayaControlScheme();
     ResolveOnLoad = true;
 }
开发者ID:calciferol,项目名称:LevelEditor,代码行数:26,代码来源:GameEditor.cs

示例3: StandardSelectionCommands

 public StandardSelectionCommands(ICommandService commandService, IContextRegistry contextRegistry)
 {
     m_commandService = commandService;
     m_contextRegistry = contextRegistry;
     m_contextRegistry.ActiveContextChanged += ActiveContextChanging;
     m_contextRegistry.ActiveContextChanged += ActiveContextChanged;
 }
开发者ID:sbambach,项目名称:ATF,代码行数:7,代码来源:StandardSelectionCommands.cs

示例4: StandardShowCommands

 public StandardShowCommands(
     ICommandService commandService, 
     IContextRegistry contextRegistry)
 {
     m_commandService = commandService;
     m_contextRegistry = contextRegistry;
 }
开发者ID:vincenthamm,项目名称:ATF,代码行数:7,代码来源:StandardShowCommands.cs

示例5: TimelineEditor

        public TimelineEditor(
            IControlHostService controlHostService,
            ICommandService commandService,
            IContextRegistry contextRegistry,
            IDocumentRegistry documentRegistry,
            IDocumentService documentService,
            IPaletteService paletteService,
            ISettingsService settingsService)
        {
            s_schemaLoader = new SchemaLoader();
            s_repository.DocumentAdded += repository_DocumentAdded;
            s_repository.DocumentRemoved += repository_DocumentRemoved;

            paletteService.AddItem(Schema.markerType.Type, "Timelines", this);
            paletteService.AddItem(Schema.groupType.Type, "Timelines", this);
            paletteService.AddItem(Schema.trackType.Type, "Timelines", this);
            paletteService.AddItem(Schema.intervalType.Type, "Timelines", this);
            paletteService.AddItem(Schema.keyType.Type, "Timelines", this);
            paletteService.AddItem(Schema.timelineRefType.Type, "Timelines", this);

            m_contextRegistry = contextRegistry;
            m_documentRegistry = documentRegistry;
            m_controlHostService = controlHostService;
            m_documentService = documentService;
            m_settingsService = settingsService;
        }
开发者ID:GeertVL,项目名称:ATF,代码行数:26,代码来源:TimelineEditor.cs

示例6: CircuitTestCommands

 public CircuitTestCommands(ICommandService commandService, 
     IContextRegistry contextRegistry,
     SchemaLoader schemaLoader)
 {
     m_commandService = commandService;
     m_schemaLoader = schemaLoader;
 }
开发者ID:sbambach,项目名称:ATF,代码行数:7,代码来源:CircuitTestCommands.cs

示例7: Editor

        public Editor(
            IControlHostService controlHostService,
            ICommandService commandService,
            IContextRegistry contextRegistry,
            IDocumentRegistry documentRegistry,
            IDocumentService documentService,
            PrototypeLister prototypeLister,
            SchemaLoader schemaLoader,
            DiagramTheme diagramTheme)
        {
            m_controlHostService = controlHostService;
            m_commandService = commandService;
            m_contextRegistry = contextRegistry;
            m_documentRegistry = documentRegistry;
            m_documentService = documentService;
            m_prototypeLister = prototypeLister;

            m_schemaLoader = schemaLoader;

            m_theme = new D2dDiagramTheme();
            m_fsmRenderer = new D2dDigraphRenderer<State, Transition>(m_theme);

            string initialDirectory = Path.Combine(Directory.GetCurrentDirectory(), "..\\..\\..\\..\\components\\wws_atf\\Samples\\FsmEditor\\data");
            EditorInfo.InitialDirectory = initialDirectory;
        }
开发者ID:Joxx0r,项目名称:ATF,代码行数:25,代码来源:Editor.cs

示例8: Editor

        public Editor(
            IControlHostService controlHostService,
            ICommandService commandService,
            IContextRegistry contextRegistry,
            IDocumentRegistry documentRegistry,
            IDocumentService documentService,
            PrototypeLister prototypeLister,
            LayerLister layerLister,
            SchemaLoader schemaLoader)
        {
            m_controlHostService = controlHostService;
            m_commandService = commandService;
            m_contextRegistry = contextRegistry;
            m_documentRegistry = documentRegistry;
            m_documentService = documentService;
            m_prototypeLister = prototypeLister;
            m_layerLister = layerLister;
            
            m_schemaLoader = schemaLoader;

            string initialDirectory = Path.Combine(Directory.GetCurrentDirectory(), "..\\..\\..\\..\\components\\wws_atf\\Samples\\CircuitEditor\\data");
            EditorInfo.InitialDirectory = initialDirectory;
            m_theme = new D2dDiagramTheme();
            m_circuitRenderer = new D2dCircuitRenderer<Module, Connection, ICircuitPin>(m_theme, documentRegistry);
            m_subGraphRenderer = new D2dSubCircuitRenderer<Module, Connection, ICircuitPin>(m_theme);

            // create d2dcontrol for displaying sub-circuit            
            m_d2dHoverControl = new D2dAdaptableControl();
            m_d2dHoverControl.Dock = DockStyle.Fill;
            var xformAdapter = new TransformAdapter();
            xformAdapter.EnforceConstraints = false;//to allow the canvas to be panned to view negative coordinates
            m_d2dHoverControl.Adapt(xformAdapter, new D2dGraphAdapter<Module, Connection, ICircuitPin>(m_circuitRenderer, xformAdapter));
            m_d2dHoverControl.DrawingD2d += new EventHandler(m_d2dHoverControl_DrawingD2d);
        }
开发者ID:vincenthamm,项目名称:ATF,代码行数:34,代码来源:Editor.cs

示例9: SourceControlContext

 public SourceControlContext(
     IDocumentRegistry documentRegistry,
     IContextRegistry contextRegistry)
 {
     m_documentRegistry = documentRegistry;
     m_contextRegistry = contextRegistry;
 }
开发者ID:Joxx0r,项目名称:ATF,代码行数:7,代码来源:SourceControlContext.cs

示例10: ManipulatorCommands

 public ManipulatorCommands(
     IContextRegistry contextRegistry,
     ICommandService commandService)
 {
     m_contextRegistry = contextRegistry;
     m_commandService = commandService;
     
 }
开发者ID:JanDeHud,项目名称:LevelEditor,代码行数:8,代码来源:ManipulatorCommands.cs

示例11: PaletteCommands

 public PaletteCommands(
     ICommandService commandService,
     IContextRegistry contextRegistry,
     PaletteService paletteService)
 {
     m_commandService = commandService;
     m_contextRegistry = contextRegistry;
     m_paletteService = paletteService;
 }
开发者ID:BeRo1985,项目名称:LevelEditor,代码行数:9,代码来源:PaletteCommands.cs

示例12: TerrainManipulator

        public TerrainManipulator(IContextRegistry contextRegistry)
        {
            _manipContext = new GUILayer.ActiveManipulatorContext(); 
            _nativeManip = null;

            _contextRegistry = new WeakReference(contextRegistry);
            contextRegistry.ActiveContextChanged += OnActiveContextChanged;
            _nativeManip = new GUILayer.NativeManipulatorLayer(_manipContext);
        }
开发者ID:coreafive,项目名称:XLE,代码行数:9,代码来源:TerrainManipulator.cs

示例13: PropertyEditorControlContext

 /// <summary>
 /// Constructor</summary>
 /// <param name="editingControlOwner">Interface for property editing control owners</param>
 /// <param name="descriptor">Property descriptor</param>
 /// <param name="transactionContext">Interface for transaction contexts</param>
 /// <param name="contextRegistry">Context registry</param>
 public PropertyEditorControlContext(
     IPropertyEditingControlOwner editingControlOwner,
     PropertyDescriptor descriptor,
     ITransactionContext transactionContext,
     IContextRegistry contextRegistry)
     : this(editingControlOwner, descriptor, transactionContext)
 {
     m_contextRegistry = contextRegistry;
 }
开发者ID:sbambach,项目名称:ATF,代码行数:15,代码来源:PropertyEditorControlContext.cs

示例14: LayeringCommands

 public LayeringCommands(
     ICommandService commandService,
     IContextRegistry contextRegistry,
     LayerLister layerLister)
 {
     m_commandService = commandService;
     m_contextRegistry = contextRegistry;
     m_layerLister = layerLister;
 }
开发者ID:BeRo1985,项目名称:LevelEditor,代码行数:9,代码来源:LayeringCommands.cs

示例15: TemplatingCommands

 protected TemplatingCommands(
     ICommandService commandService,
     IContextRegistry contextRegistry,
     TemplateLister templateLister)
 {
     m_commandService = commandService;
     m_contextRegistry = contextRegistry;
     m_templateLister = templateLister;
 }
开发者ID:BeRo1985,项目名称:LevelEditor,代码行数:9,代码来源:TemplatingCommands.cs


注:本文中的IContextRegistry类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。