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)
98Assert.False(host.Loading); 114Assert.True(host.Loading); 118Assert.Equal(loading, host.Loading); 904Assert.False(host.Loading); 1815Assert.False(host.Loading); 1830Assert.False(host.Loading); 1843Assert.False(host.Loading); 1855Assert.False(host.Loading); 2225Assert.False(host.Loading); 2944Assert.False(host.Loading); 2975Assert.True(host.Loading); 3016Assert.False(host.Loading); 3047Assert.True(host.Loading);
System\ComponentModel\Design\DesignSurfaceTests.cs (31)
22Assert.False(surface.Host.Loading); 61Assert.False(surface.Host.Loading); 83Assert.False(surface.Host.Loading); 105Assert.False(surface.Host.Loading); 152Assert.False(surface.Host.Loading); 421Assert.True(surface.Host.Loading); 422Assert.True(host.Loading); 444Assert.False(surface.Host.Loading); 472Assert.False(surface.Host.Loading); 491Assert.False(surface.Host.Loading); 523Assert.True(surface.Host.Loading); 535Assert.True(surface.Host.Loading); 588Assert.False(surface.Host.Loading); 598Assert.False(surface.Host.Loading); 933Assert.False(surface.Host.Loading); 934Assert.False(host.Loading); 1194Assert.True(host.Loading); 1198Assert.True(host.Loading); 1211Assert.True(host.Loading); 1215Assert.True(host.Loading); 1221Assert.True(host.Loading); 1296Assert.True(host.Loading); 1300Assert.True(host.Loading); 1313Assert.True(host.Loading); 1317Assert.True(host.Loading); 1330Assert.True(host.Loading); 1334Assert.True(host.Loading); 1340Assert.True(host.Loading); 1355Assert.True(host.Loading); 1359Assert.True(host.Loading); 1365Assert.True(host.Loading);
ToolStripDropDownDesignerTest.cs (1)
24.Setup(h => h.Loading)