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); }
public AutoUpdater() { config = ConfigUpdater.LoadConfig(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, Default_Config_File)); }