本文整理汇总了C#中IContextRegistry类的典型用法代码示例。如果您正苦于以下问题:C# IContextRegistry类的具体用法?C# IContextRegistry怎么用?C# IContextRegistry使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
IContextRegistry类属于命名空间,在下文中一共展示了IContextRegistry类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PropertyEditor
public PropertyEditor(
IControlHostService controlHostService,
IContextRegistry contextRegistry)
{
ControlHostService = controlHostService;
ContextRegistry = contextRegistry;
}
示例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;
}
示例3: StandardSelectionCommands
public StandardSelectionCommands(ICommandService commandService, IContextRegistry contextRegistry)
{
m_commandService = commandService;
m_contextRegistry = contextRegistry;
m_contextRegistry.ActiveContextChanged += ActiveContextChanging;
m_contextRegistry.ActiveContextChanged += ActiveContextChanged;
}
示例4: StandardShowCommands
public StandardShowCommands(
ICommandService commandService,
IContextRegistry contextRegistry)
{
m_commandService = commandService;
m_contextRegistry = contextRegistry;
}
示例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;
}
示例6: CircuitTestCommands
public CircuitTestCommands(ICommandService commandService,
IContextRegistry contextRegistry,
SchemaLoader schemaLoader)
{
m_commandService = commandService;
m_schemaLoader = schemaLoader;
}
示例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;
}
示例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);
}
示例9: SourceControlContext
public SourceControlContext(
IDocumentRegistry documentRegistry,
IContextRegistry contextRegistry)
{
m_documentRegistry = documentRegistry;
m_contextRegistry = contextRegistry;
}
示例10: ManipulatorCommands
public ManipulatorCommands(
IContextRegistry contextRegistry,
ICommandService commandService)
{
m_contextRegistry = contextRegistry;
m_commandService = commandService;
}
示例11: PaletteCommands
public PaletteCommands(
ICommandService commandService,
IContextRegistry contextRegistry,
PaletteService paletteService)
{
m_commandService = commandService;
m_contextRegistry = contextRegistry;
m_paletteService = paletteService;
}
示例12: TerrainManipulator
public TerrainManipulator(IContextRegistry contextRegistry)
{
_manipContext = new GUILayer.ActiveManipulatorContext();
_nativeManip = null;
_contextRegistry = new WeakReference(contextRegistry);
contextRegistry.ActiveContextChanged += OnActiveContextChanged;
_nativeManip = new GUILayer.NativeManipulatorLayer(_manipContext);
}
示例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;
}
示例14: LayeringCommands
public LayeringCommands(
ICommandService commandService,
IContextRegistry contextRegistry,
LayerLister layerLister)
{
m_commandService = commandService;
m_contextRegistry = contextRegistry;
m_layerLister = layerLister;
}
示例15: TemplatingCommands
protected TemplatingCommands(
ICommandService commandService,
IContextRegistry contextRegistry,
TemplateLister templateLister)
{
m_commandService = commandService;
m_contextRegistry = contextRegistry;
m_templateLister = templateLister;
}