private void LoadConfig() { var cfgfile = Path.Combine(Environment.CurrentDirectory, "aria2c.json"); if (File.Exists(cfgfile)) { using (var reader = new StreamReader(cfgfile)) { this.Config = JsonConvert.DeserializeObject <Aria2Config>(reader.ReadToEnd()); } } else { this.Config = new Aria2Config(); } }
public Aria2Helper() { this.Config = new Aria2Config(); }