public void SaveSettings() { foreach (Profile profile in profiles) profile.PrepareSave(); var data = new DataStore(); ILoaderFactory factory = data.GetLoaderFactory(LOADERS.XML); factory.Init(); factory.GetLoader().SaveProfiles(profiles); }
public void LoadProfiles() { var data = new DataStore(); ILoaderFactory factory = data.GetLoaderFactory(LOADERS.XML); factory.Init(); profiles = factory.GetLoader().LoadProfiles(); }