public CSharpEventBindingService(ICSharpDesignerLoaderContext context, IServiceProvider provider, CSharpDesignerLoader loader) : base(provider)
		{
			this.loader = loader;
			if (context == null)
				throw new ArgumentNullException("context");
			if (loader == null)
				throw new ArgumentNullException("loader");
			this.context = context;
			this.loader = loader;
		}
		public CSharpDesignerGenerator(ICSharpDesignerLoaderContext context)
		{
			this.context = context;
			this.primaryParseInfo = context.GetPrimaryFileParseInformation();
			this.compilation = context.GetCompilation();
			
			// Find designer class
			formClass = FormsDesignerSecondaryDisplayBinding.GetDesignableClass(primaryParseInfo.UnresolvedFile, compilation, out primaryPart);
			initializeComponents = FormsDesignerSecondaryDisplayBinding.GetInitializeComponents(formClass);
			if (initializeComponents == null)
				throw new FormsDesignerLoadException("Could not find InitializeComponents");
		}
Ejemplo n.º 3
0
 public CSharpEventBindingService(ICSharpDesignerLoaderContext context, IServiceProvider provider, CSharpDesignerLoader loader) : base(provider)
 {
     this.loader = loader;
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     if (loader == null)
     {
         throw new ArgumentNullException("loader");
     }
     this.context = context;
     this.loader  = loader;
 }
        public CSharpDesignerGenerator(ICSharpDesignerLoaderContext context)
        {
            this.context          = context;
            this.primaryParseInfo = context.GetPrimaryFileParseInformation();
            this.compilation      = context.GetCompilation();

            // Find designer class
            formClass            = FormsDesignerSecondaryDisplayBinding.GetDesignableClass(primaryParseInfo.UnresolvedFile, compilation, out primaryPart);
            initializeComponents = FormsDesignerSecondaryDisplayBinding.GetInitializeComponents(formClass);
            if (initializeComponents == null)
            {
                throw new FormsDesignerLoadException("Could not find InitializeComponents");
            }
        }
Ejemplo n.º 5
0
		public CSharpDesignerLoader(ICSharpDesignerLoaderContext context)
		{
			this.context = context;
		}
 public CSharpDesignerLoader(ICSharpDesignerLoaderContext context)
 {
     this.context = context;
 }