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