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); }
public UASettings() { this.canary = "pqz"; this.domainFilters = new List <string>(); this.UnicodeTestMappings = XmlMappingLoader.LoadUnicodeCharMappingsFromFile(UAUtilities.GetModuleLocation() + MappingFileName); }