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