52 references to _state
System.Windows.Forms.Design (52)
System\ComponentModel\Design\Serialization\BasicDesignerLoader.cs (52)
50
_state
[s_stateFlushInProgress] = false;
51
_state
[s_stateReloadSupported] = true;
52
_state
[s_stateEnableComponentEvents] = false;
69
get =>
_state
[s_stateModified];
70
set =>
_state
[s_stateModified] = value;
129
protected bool ReloadPending =>
_state
[s_stateReloadAtIdle];
142
if (
_state
[s_stateLoaded])
162
_state
[s_stateLoaded | s_stateLoadFailed] = false;
244
if (
_state
[s_stateReloadAtIdle])
283
if (
_state
[s_stateFlushInProgress] || !
_state
[s_stateLoaded] || !Modified)
288
_state
[s_stateFlushInProgress] = true;
335
_state
[s_stateFlushInProgress] = false;
413
_state
[s_stateLoaded] = false;
438
bool previouslyEnabled =
_state
[s_stateEnableComponentEvents];
442
_state
[s_stateEnableComponentEvents] = true;
446
_state
[s_stateEnableComponentEvents] = false;
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)
577
_state
[s_stateActiveDocument] = true;
579
if (!
_state
[s_stateDeferredReload] || _host is null)
584
_state
[s_stateDeferredReload] = false;
587
if (
_state
[s_stateForceReload])
592
if (!
_state
[s_stateFlushReload])
597
if (
_state
[s_stateModifyIfErrors])
609
private void OnDesignerDeactivate(object? sender, EventArgs e) =>
_state
[s_stateActiveDocument] = false;
633
_state
[s_stateLoaded] = true;
692
if (
_state
[s_stateModifyIfErrors] && errors is not null && errors.Count > 0)
727
if (!
_state
[s_stateReloadAtIdle])
732
_state
[s_stateReloadAtIdle] = false;
744
_state
[s_stateActiveDocument] = false;
745
_state
[s_stateDeferredReload] = true; // reload on activate
757
if (!
_state
[s_stateForceReload] && !IsReloadNeeded())
764
if (
_state
[s_stateFlushReload])
774
_state
[s_stateForceReload | s_stateModifyIfErrors | s_stateFlushReload] = false;
812
_state
[s_stateForceReload] = ((flags & ReloadOptions.Force) != 0);
813
_state
[s_stateFlushReload] = ((flags & ReloadOptions.NoFlush) == 0);
814
_state
[s_stateModifyIfErrors] = ((flags & ReloadOptions.ModifyOnError) != 0);
820
if (
_state
[s_stateFlushInProgress])
825
if (!
_state
[s_stateActiveDocument])
827
_state
[s_stateDeferredReload] = true;
831
if (
_state
[s_stateReloadAtIdle])
837
_state
[s_stateReloadAtIdle] = true;
891
_state
[s_stateLoaded] = false;
932
_state
[s_stateLoadFailed] = true;
938
OnEndLoad(!
_state
[s_stateLoadFailed], errorCollection);
965
if (!
_state
[s_stateReloadSupported] || _loadDependencyCount != 0)