private CityConfig() { XmlStorageHelper xmler = new XmlStorageHelper(); if (!File.Exists(DefaultConfigXml)) { return; } xmler.LoadFromFile(Countryconfig, DefaultConfigXml); }
public CityRoadConfig(string configPath = "") { if (!string.IsNullOrEmpty(configPath)) { DefaultConfigXml = configPath; } XmlStorageHelper xmler = new XmlStorageHelper(); if (!File.Exists(DefaultConfigXml)) { return; } xmler.LoadFromFile(cityRoadConfig, DefaultConfigXml); }
private CityURLConfig(string path = "") { XmlStorageHelper xmler = new XmlStorageHelper(); if (!string.IsNullOrEmpty(path)) { DefaultConfigXml = path; } if (!File.Exists(DefaultConfigXml)) { return; } xmler.LoadFromFile(cityURLConfig, DefaultConfigXml); }
public void SaveConfig() { XmlStorageHelper xmler = new XmlStorageHelper(); xmler.SaveToFile(cityRoadConfig, DefaultConfigXml); }
public void SaveConfig() { XmlStorageHelper xmler = new XmlStorageHelper(); xmler.SaveToFile(Countryconfig, DefaultConfigXml); }