public Prowl(Config.ProwlConfig prowlConfig) { this.ProwlConfig = prowlConfig; defaults.Add(new KeyValuePair<string, string>("providerkey", this._providerKey)); defaults.Add(new KeyValuePair<string, string>("priority", this._priority.ToString())); defaults.Add(new KeyValuePair<string, string>("application", this._application)); defaults.Add(new KeyValuePair<string, string>("description", this._description)); }
public ClassRegistry() { this._config = new Config(); this._webuiapi = new WebUIAPI(this._config); this._prowl = new Prowl(this._config.Prowl); this._growl = new Growl(this._config.Growl); this._twitter = new Twitter(this._config.Twitter); this._boxcar = new Boxcar(this._config.Boxcar); }
public WebUIAPI(Config config) { this.Config = config; this.Torrents = new TorrentListing(); this.Timer = new Timer(); this.Cookies = new CookieContainer(); this.Timer.Tick += new EventHandler(Timer_Tick); this.Timer.Interval = 5000; }
private void Settings_Shown(object sender, System.EventArgs e) { if (Properties.Settings.Default.FirstRun) { this.RestoreFromSystray(); Properties.Settings.Default.Upgrade(); this.Config = new Config(); Properties.Settings.Default.FirstRun = false; } else { this.BackToSystray(); } this.lblVersion.Text = this._Version.ToString(); this.SetConfig(); }
public WebUIAPI(Config cfg) { this._Config = cfg; timer.Tick += new EventHandler(timer_Tick); timer.Interval = 10000; }
public Twitter(Config.TwitterConfig twitterConfig) { this.TwitterConfig = twitterConfig; }
public Boxcar(Config.BoxcarConfig boxcarConfig) { this.BoxcarConfig = boxcarConfig; }