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