void IPersistable.Save(SettingsStorage settings) { var ps = new PairSet <Tuple <string, Type>, IContentWindow>(); foreach (var control in _controls) { ps.Add(Tuple.Create(control.Id, control.Control.GetType()), control); } settings.SaveUISettings(DockSite, ps); if (EmulationService != null) { settings.SetValue("EmulationService", EmulationService.Save()); } }
public void Save(SettingsStorage storage) { storage.SaveUISettings(DockSite, _contents); }