public EditorHost(MonoDevelopProxy proxy) { this.proxy = proxy; //set up the services services = new ServiceContainer(); services.AddService(typeof(INameCreationService), new NameCreationService()); services.AddService(typeof(ISelectionService), new SelectionService()); services.AddService(typeof(ITypeResolutionService), new TypeResolutionService()); services.AddService(typeof(IEventBindingService), new AspNetEdit.Editor.ComponentModel.EventBindingService(proxy)); ExtenderListService extListServ = new ExtenderListService(); services.AddService(typeof(IExtenderListService), extListServ); services.AddService(typeof(IExtenderProviderService), extListServ); services.AddService(typeof(ITypeDescriptorFilterService), new TypeDescriptorFilterService()); //services.AddService (typeof (IToolboxService), toolboxService); System.Diagnostics.Trace.WriteLine("Creating DesignerHost"); host = new DesignerHost(services); System.Diagnostics.Trace.WriteLine("Created DesignerHost"); }
public EditorHost(MonoDevelopProxy proxy) { this.proxy = proxy; //set up the services services = new ServiceContainer(); services.AddService(typeof(INameCreationService), new NameCreationService()); services.AddService(typeof(ISelectionService), new SelectionService()); services.AddService(typeof(ITypeResolutionService), new TypeResolutionService()); services.AddService( typeof(IEventBindingService), new AspNetEdit.Editor.ComponentModel.EventBindingService(proxy) ); ExtenderListService extListServ = new ExtenderListService(); services.AddService(typeof(IExtenderListService), extListServ); services.AddService(typeof(IExtenderProviderService), extListServ); services.AddService(typeof(ITypeDescriptorFilterService), new TypeDescriptorFilterService()); services.AddService(typeof(IMenuCommandService), new AspNetEdit.Editor.ComponentModel.MenuCommandService()); //services.AddService (typeof (IToolboxService), toolboxService); var project = MonoDevelop.Ide.IdeApp.Workbench.ActiveDocument.Project as AspNetAppProject; var aspParsedDoc = MonoDevelop.Ide.IdeApp.Workbench.ActiveDocument.ParsedDocument as AspNetParsedDocument; if (project != null && aspParsedDoc != null) { WebFormReferenceManager refMan = new WebFormReferenceManager(project); refMan.Doc = aspParsedDoc; services.AddService(typeof(WebFormReferenceManager), refMan); } System.Diagnostics.Trace.WriteLine("Creating DesignerHost"); designerHost = new DesignerHost(services, this); System.Diagnostics.Trace.WriteLine("Created DesignerHost"); designerHost.DocumentChanged += new DesignerHost.DocumentChangedEventHandler(OnDocumentChanged); }