示例#1
0
        public static ConfigUpdater LoadConfig(string file)
        {
            XmlSerializer xs     = new XmlSerializer(typeof(ConfigUpdater));
            StreamReader  sr     = new StreamReader(file);
            ConfigUpdater config = xs.Deserialize(sr) as ConfigUpdater;

            sr.Close();

            return(config);
        }
示例#2
0
文件: AutoUpdater.cs 项目: radtek/dms
 public AutoUpdater()
 {
     config = ConfigUpdater.LoadConfig(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, Default_Config_File));
 }