32 references to LoaderHost
System.Windows.Forms.Design (29)
System\ComponentModel\Design\Serialization\BasicDesignerLoader.cs (11)
385protected virtual void Initialize() => LoaderHost.AddService<IDesignerLoaderService>(this); 471if (_state[s_stateEnableComponentEvents] && !LoaderHost.Loading) 486if (_state[s_stateEnableComponentEvents] && !LoaderHost.Loading) 501if (_state[s_stateEnableComponentEvents] && !LoaderHost.Loading) 516if (_state[s_stateEnableComponentEvents] && !LoaderHost.Loading) 531if (_state[s_stateEnableComponentEvents] && !LoaderHost.Loading) 546if (_state[s_stateEnableComponentEvents] && !LoaderHost.Loading) 563if (_state[s_stateEnableComponentEvents] && !LoaderHost.Loading) 640lh2.CanReloadWithErrors = LoaderHost.RootComponent is not null; 688LoaderHost.EndLoad(_baseComponentClassName!, successful, errors); 750IDesignerLoaderHost host = LoaderHost;
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (18)
73LoaderHost.RemoveService<CodeTypeDeclaration>(); 236Type? t = LoaderHost.GetType(CodeDomSerializerBase.GetTypeNameFromCodeTypeReference(manager, typeReference)); 267if (serializerAttribute.SerializerBaseTypeName is not null && LoaderHost.GetType(serializerAttribute.SerializerBaseTypeName) == typeof(CodeDomSerializer)) 269Type? serializerType = LoaderHost.GetType(serializerAttribute.SerializerTypeName!); 372LoaderHost.AddService(_documentType); 587LoaderHost.AddService<ComponentSerializationService>(callback); 588LoaderHost.AddService<INameCreationService>(this); 589LoaderHost.AddService<IDesignerSerializationService>(this); 603LoaderHost.AddService(typeResolutionService); 742return new CodeDomComponentSerializationService(LoaderHost); 798Debug.Assert(_rootSerializer is not null || _typeSerializer is not null, $"What are we saving right now? Base component has no serializer: {LoaderHost.RootComponent.GetType().FullName}"); 802typeDeclaration = _rootSerializer.Serialize(manager, LoaderHost.RootComponent) as CodeTypeDeclaration; 807typeDeclaration = _typeSerializer.Serialize(manager, LoaderHost.RootComponent, LoaderHost.Container.Components); 853if (LoaderHost.RootComponent == component) 980return css.Deserialize(data, LoaderHost.Container); 1161if (Modified && LoaderHost.Container.Components[name] is not null) 1254if (!dup && Modified && LoaderHost.Container.Components[name] is not null)
System.Windows.Forms.UI.IntegrationTests (3)
DesignBehaviorsTests.cs (3)
305if (LoaderHost is null) 310LoaderHost.CreateComponent(typeof(Form)); 312LoaderHost.EndLoad(nameof(Form), true, errors);