示例#1
0
        private CityConfig()
        {
            XmlStorageHelper xmler = new XmlStorageHelper();

            if (!File.Exists(DefaultConfigXml))
            {
                return;
            }
            xmler.LoadFromFile(Countryconfig, DefaultConfigXml);
        }
示例#2
0
        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);
        }
示例#4
0
        public void SaveConfig()
        {
            XmlStorageHelper xmler = new XmlStorageHelper();

            xmler.SaveToFile(cityRoadConfig, DefaultConfigXml);
        }
示例#5
0
        public void SaveConfig()
        {
            XmlStorageHelper xmler = new XmlStorageHelper();

            xmler.SaveToFile(Countryconfig, DefaultConfigXml);
        }