• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# IContextRegistry类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: PivotCommands

        public PivotCommands(ICommandService commandService, IContextRegistry contextRegistry)
        {
            m_commandService = commandService;
            m_contextRegistry = contextRegistry;

            // define functions for moving pivots
            //m_functions = new MovePivot[Enum.GetValues(typeof(Command)).Length];
            m_functions = new Func<Vec3F, AABB, Vec3F>[Enum.GetValues(typeof(Command)).Length];

            m_functions[(int)Command.XMin] = (Vec3F pivot, AABB aabb) =>
                {
                    return new Vec3F(aabb.Min.X, pivot.Y, pivot.Z);
                };

            m_functions[(int)Command.XCenter]=(Vec3F pivot, AABB aabb) =>
                {
                    return new Vec3F(aabb.Center.X, pivot.Y, pivot.Z);
                };

            m_functions[(int)Command.XMax]=(Vec3F pivot, AABB aabb) =>
                {
                    return new Vec3F(aabb.Max.X, pivot.Y, pivot.Z);
                };

            m_functions[(int)Command.YMin]=(Vec3F pivot, AABB aabb) =>
                {
                    return new Vec3F(pivot.X, aabb.Min.Y, pivot.Z);
                };

            m_functions[(int)Command.YCenter]=(Vec3F pivot, AABB aabb) =>
                {
                    return new Vec3F(pivot.X, aabb.Center.Y, pivot.Z);
                };

            m_functions[(int)Command.YMax]=(Vec3F pivot, AABB aabb) =>
                {
                    return new Vec3F(pivot.X, aabb.Max.Y, pivot.Z);
                };

            m_functions[(int)Command.ZMin]=(Vec3F pivot, AABB aabb) =>
                {
                    return new Vec3F(pivot.X, pivot.Y, aabb.Min.Z);
                };
            m_functions[(int)Command.ZCenter]=(Vec3F pivot, AABB aabb) =>
                {
                    return new Vec3F(pivot.X, pivot.Y, aabb.Center.Z);
                };
            m_functions[(int)Command.ZMax]=(Vec3F pivot, AABB aabb) =>
                {
                    return new Vec3F(pivot.X, pivot.Y, aabb.Max.Z); ;
                };
            m_functions[(int)Command.AllCenter] = (Vec3F pivot, AABB aabb) =>
            {
                return aabb.Center;
            };
        }
开发者ID:ldh9451,项目名称:XLE,代码行数:56,代码来源:PivotCommands.cs


示例17: CircuitControlRegistry

 public CircuitControlRegistry(
     IControlHostService controlHostService,
     IContextRegistry contextRegistry,
     IDocumentService documentService)
 {
     m_controlHostService = controlHostService;
     m_contextRegistry = contextRegistry;
     documentService.DocumentOpened += documentService_DocumentOpened;
     documentService.DocumentClosed += documentService_DocumentClosed;
 }
开发者ID:JanDeHud,项目名称:LevelEditor,代码行数:10,代码来源:CircuitControlRegistry.cs


示例18: GameProjectLister

 public GameProjectLister(
     ICommandService commandService,
     IControlHostService controlHostService,
     IContextRegistry contextRegistry)
     : base(commandService)
 {
     m_controlHostService = controlHostService;
     m_contextRegistry = contextRegistry;
     m_contextRegistry.ActiveContextChanged += ContextRegistry_ActiveContextChanged;
 }
开发者ID:ldh9451,项目名称:XLE,代码行数:10,代码来源:GameProjectLister.cs


示例19: DiagramControlRegistry

 public DiagramControlRegistry(
     IControlHostService controlHostService,
     IContextRegistry contextRegistry,
     IDocumentService documentService)
 {
     _hostService = controlHostService;
     _contextRegistry = contextRegistry;
     documentService.DocumentOpened += documentService_DocumentOpened;
     documentService.DocumentClosed += documentService_DocumentClosed;
 }
开发者ID:coreafive,项目名称:XLE,代码行数:10,代码来源:DiagramControlRegistry.cs


示例20: ResourceListEditor

        public ResourceListEditor(
            IControlHostService controlHostService,
            ICommandService commandService,
            IContextRegistry contextRegistry)
        {
            m_controlHostService = controlHostService;
            m_commandService = commandService;
            m_contextRegistry = contextRegistry;

            m_contextRegistry.ActiveContextChanged += new EventHandler(contextRegistry_ActiveContextChanged);
        }
开发者ID:Joxx0r,项目名称:ATF,代码行数:11,代码来源:ResourceListEditor.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IContextualResourceModel类代码示例发布时间:2022-05-24
下一篇:
C# IContextMenu类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap