public Site(IComponent component, string name, PropertyGridExContainer container, PropertyGridEx parentGrid) { if (parentGrid == null) { throw new ArgumentNullException("parentGrid"); } if (component == null) { throw new ArgumentNullException("component"); } if (container == null) { throw new ArgumentNullException("container"); } this.component = component; this.container = container; componentName = name; grid = parentGrid; }
private void InitializeComponentModel() { container = new PropertyGridExContainer(this); container.Services.AddService <IMenuCommandService>(new MenuCommandService(verbs)); }