/// <summary> /// Load the list of search engines from the resource. /// </summary> private static void LoadSearchEngines() { try { string searchEnginesXML = Resources.SearchEngines; using (XmlReader reader = XmlReader.Create(new StringReader(searchEnginesXML))) { XmlSerializer serializer = new XmlSerializer(typeof(SearchEnginesFile)); _searchEngines = (SearchEnginesFile)serializer.Deserialize(reader); } } catch (Exception e) { LogFile.WriteLine("Error parsing search engines {0} : ", e.Message); } }