public void SaveProfiles(ProfileRoot profileRoot) { var xmlSerializer = new XmlSerializer(typeof (ProfileRoot)); using (TextWriter writer = new StreamWriter(ProfilesXmlFileName)) { xmlSerializer.Serialize(writer, profileRoot); writer.Close(); } }
public void LoadProfiles() { _profileRoot = _profileRepository.LoadProfiles(); }