Exemple #1
0
        public static WindowProfile Load(Stream stream)
        {
            XmlReaderSettings settings = new XmlReaderSettings()
            {
                CheckCharacters = false,
                CloseInput      = false
            };

            using (XmlReader reader = XmlReader.Create(stream, settings))
                return(WindowProfile.LoadInternal(reader));
        }
Exemple #2
0
 public static WindowProfile Load(string profileXml)
 {
     using (StringReader stringReader = new StringReader(profileXml))
     {
         XmlReaderSettings settings = new XmlReaderSettings()
         {
             CheckCharacters = false,
             CloseInput      = false
         };
         using (XmlReader reader = XmlReader.Create((TextReader)stringReader, settings))
             return(WindowProfile.LoadInternal(reader));
     }
 }