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