示例#1
0
        public static UASettings Load()
        {
            UASettings    settings;
            XmlSerializer s     = new XmlSerializer(typeof(Secsay.UASettings));
            string        myDoc = Environment.GetEnvironmentVariable("UserProfile");
            TextReader    r     = new StreamReader(fileName);

            settings = (UASettings)s.Deserialize(r);
            r.Close();
            settings.UnicodeTestMappings = XmlMappingLoader.LoadUnicodeCharMappingsFromFile(UAUtilities.GetModuleLocation() + MappingFileName);
            return(settings);
        }
示例#2
0
 public UASettings()
 {
     this.canary              = "pqz";
     this.domainFilters       = new List <string>();
     this.UnicodeTestMappings = XmlMappingLoader.LoadUnicodeCharMappingsFromFile(UAUtilities.GetModuleLocation() + MappingFileName);
 }