/// <summary> /// Synchronizes the default states from configuration. /// </summary> private void SyncDefaultStatesFromConfig() { _defaultStates = new StringCollection(); foreach (var stateProxy in DefaultStatesProxy.OfType <StateElement>().ToList()) { _defaultStates.Add(stateProxy.StateName); } //InitLazySelectedStates(); MonahrqConfiguration.ConfigDebugLog("HospitalRegion.SyncDefaultStatesFromConfig", String.Format("States: {0}", DefaultStateCount)); }
/// <summary> /// Synchronizes the default states to configuration. /// </summary> internal void SyncDefaultStatesToConfig() { MonahrqConfiguration.ConfigDebugLog("HospitalRegion.SyncDefaultStatesToConfig", String.Format("States: {0}", DefaultStateCount)); if (_defaultStates == null) { return; } DefaultStatesProxy = new StatesCollectionElement(); foreach (var state in _defaultStates) { DefaultStatesProxy.Add(new StateElement { StateName = state }); } }