Ejemplo n.º 1
0
 private void ReadFrom(Stream inputStream)
 {
     try
     {
         ctSettings = SettingsDocument.Parse(inputStream).Settings;
     }
     catch (Exception e)
     {
         throw new Exception("SettingsDocument parse failed", e);
     }
 }
Ejemplo n.º 2
0
 private void ReadFrom(Stream inputStream)
 {
     try
     {
         XmlDocument xmldoc = ConvertStreamToXml(inputStream);
         ctSettings = SettingsDocument.Parse(xmldoc, NamespaceManager).Settings;
     }
     catch (Exception e)
     {
         throw new Exception("SettingsDocument parse failed", e);
     }
 }