public void Load(SettingsStorage storage) { _suspendChangedEvent = true; RemoveControls(); storage.LoadUISettings(DockSite, _contents); _suspendChangedEvent = false; }
void IPersistable.Load(SettingsStorage settings) { _suspendChangedEvent = true; RemoveControls(); settings.LoadUISettings(DockSite, new PairSet <Tuple <string, Type>, IContentWindow>()); var emulationService = settings.GetValue <SettingsStorage>("EmulationService"); if (emulationService != null && EmulationService != null) { EmulationService.Load(emulationService); } _suspendChangedEvent = false; }