1 implementation of Loading
System.Windows.Forms.Design (1)
System\ComponentModel\Design\DesignerHost.cs (1)
866bool IDesignerHost.Loading =>
68 references to Loading
System.Windows.Forms.Design (23)
System\ComponentModel\Design\DesignerEventService.cs (1)
84if (ce.Component?.Site?.Container is IDesignerHost { Loading: true })
System\ComponentModel\Design\DesignerHost.cs (2)
850if (!((IDesignerHost)this).Loading) 860if (!((IDesignerHost)this).Loading)
System\ComponentModel\Design\Serialization\BasicDesignerLoader.cs (7)
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)
System\ComponentModel\Design\Serialization\CodeDomLocalizationProvider.LanguageExtenders.cs (2)
152if (_host.Loading) 191if (_host is not null && !_host.Loading)
System\Windows\Forms\Design\CommandSet.cs (1)
2994&& !host.Loading
System\Windows\Forms\Design\ComponentTray.cs (3)
723if (host is not null && !host.Loading) 742if (host is not null && !host.Loading) 1533if (host is not null && host.Loading)
System\Windows\Forms\Design\ControlDesigner.cs (1)
164if ((!TryGetService(out IDesignerHost? host) || (host is not null && !host.Loading))
System\Windows\Forms\Design\DataGridViewColumnDesigner.cs (1)
83if ((host is null || (host is not null && !host.Loading)) && Component.Site is not null)
System\Windows\Forms\Design\DocumentDesigner.cs (2)
116if (host is not null && !host.Loading) 921if (host is not null && host.Loading && !_trayLayoutSuspended)
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
201return host.Loading;
System\Windows\Forms\Design\ToolStripDropDownDesigner.cs (1)
370if (_host is not null && !_host.Loading)
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
404if (_designerHost is not null && !_designerHost.Loading)
System.Windows.Forms.Design.Tests (45)
System\ComponentModel\Design\DesignerHostTests.cs (13)
100Assert.False(host.Loading); 116Assert.True(host.Loading); 120Assert.Equal(loading, host.Loading); 906Assert.False(host.Loading); 1817Assert.False(host.Loading); 1832Assert.False(host.Loading); 1845Assert.False(host.Loading); 1857Assert.False(host.Loading); 2227Assert.False(host.Loading); 2946Assert.False(host.Loading); 2977Assert.True(host.Loading); 3018Assert.False(host.Loading); 3049Assert.True(host.Loading);
System\ComponentModel\Design\DesignSurfaceTests.cs (31)
24Assert.False(surface.Host.Loading); 63Assert.False(surface.Host.Loading); 85Assert.False(surface.Host.Loading); 107Assert.False(surface.Host.Loading); 154Assert.False(surface.Host.Loading); 423Assert.True(surface.Host.Loading); 424Assert.True(host.Loading); 446Assert.False(surface.Host.Loading); 474Assert.False(surface.Host.Loading); 493Assert.False(surface.Host.Loading); 525Assert.True(surface.Host.Loading); 537Assert.True(surface.Host.Loading); 590Assert.False(surface.Host.Loading); 600Assert.False(surface.Host.Loading); 935Assert.False(surface.Host.Loading); 936Assert.False(host.Loading); 1196Assert.True(host.Loading); 1200Assert.True(host.Loading); 1213Assert.True(host.Loading); 1217Assert.True(host.Loading); 1223Assert.True(host.Loading); 1298Assert.True(host.Loading); 1302Assert.True(host.Loading); 1315Assert.True(host.Loading); 1319Assert.True(host.Loading); 1332Assert.True(host.Loading); 1336Assert.True(host.Loading); 1342Assert.True(host.Loading); 1357Assert.True(host.Loading); 1361Assert.True(host.Loading); 1367Assert.True(host.Loading);
ToolStripDropDownDesignerTest.cs (1)
26.Setup(h => h.Loading)