Browse Source

move AmbientProperties Service to AppDomain

formsdesignerappdomain
Siegfried Pammer 14 years ago
parent
commit
ff4cbdd8c8
  1. 2
      src/AddIns/DisplayBindings/FormsDesigner/FormsDesigner.AddIn/FormsDesignerViewContent.cs
  2. 1
      src/AddIns/DisplayBindings/FormsDesigner/Project/FormsDesignerAppDomainHost.cs

2
src/AddIns/DisplayBindings/FormsDesigner/FormsDesigner.AddIn/FormsDesignerViewContent.cs

@ -322,8 +322,6 @@ namespace ICSharpCode.FormsDesigner
appDomainHost.AddService(typeof(IHelpService), new HelpService()); appDomainHost.AddService(typeof(IHelpService), new HelpService());
appDomainHost.AddService(typeof(System.ComponentModel.Design.IResourceService), new DesignerResourceService(this.resourceStore)); appDomainHost.AddService(typeof(System.ComponentModel.Design.IResourceService), new DesignerResourceService(this.resourceStore));
AmbientProperties ambientProperties = new AmbientProperties();
appDomainHost.AddService(typeof(AmbientProperties), ambientProperties);
appDomainHost.AddService(typeof(DesignerOptionService), new SharpDevelopDesignerOptionService(options)); appDomainHost.AddService(typeof(DesignerOptionService), new SharpDevelopDesignerOptionService(options));
appDomainHost.AddService(typeof(IProjectResourceService), new ProjectResourceService(ParserService.GetParseInformation(this.DesignerCodeFile.FileName).CompilationUnit.ProjectContent)); appDomainHost.AddService(typeof(IProjectResourceService), new ProjectResourceService(ParserService.GetParseInformation(this.DesignerCodeFile.FileName).CompilationUnit.ProjectContent));
appDomainHost.AddService(typeof(IImageResourceEditorDialogWrapper), new ImageResourceEditorDialogWrapper(ParserService.GetParseInformation(this.DesignerCodeFile.FileName).CompilationUnit.ProjectContent.Project as IProject)); appDomainHost.AddService(typeof(IImageResourceEditorDialogWrapper), new ImageResourceEditorDialogWrapper(ParserService.GetParseInformation(this.DesignerCodeFile.FileName).CompilationUnit.ProjectContent.Project as IProject));

1
src/AddIns/DisplayBindings/FormsDesigner/Project/FormsDesignerAppDomainHost.cs

@ -75,6 +75,7 @@ namespace ICSharpCode.FormsDesigner
container.AddService(typeof(ITypeResolutionService), new TypeResolutionService(fileName, container, typeLocator)); container.AddService(typeof(ITypeResolutionService), new TypeResolutionService(fileName, container, typeLocator));
container.AddService(typeof(ITypeDiscoveryService), new TypeDiscoveryService(gacWrapper, container)); container.AddService(typeof(ITypeDiscoveryService), new TypeDiscoveryService(gacWrapper, container));
container.AddService(typeof(MemberRelationshipService), new DefaultMemberRelationshipService(container)); container.AddService(typeof(MemberRelationshipService), new DefaultMemberRelationshipService(container));
container.AddService(typeof(AmbientProperties), new AmbientProperties());
this.designSurface = designSurfaceManager.CreateDesignSurface(container); this.designSurface = designSurfaceManager.CreateDesignSurface(container);

Loading…
Cancel
Save