Пример #1
0
        public SettingsForm()
        {
            this._Version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
            if (this.Config.CheckForUpdates)
            {
                System.Threading.ThreadPool.QueueUserWorkItem(this.CheckForUpdates);
            }

            InitializeComponent();

            this.utorrent = new WebUIAPI(this.Config);
            this.utorrent.TorrentAdded += new WebUIAPI.TorrentAddedEventHandler(utorrent_TorrentAdded);
            this.utorrent.DownloadComplete += new WebUIAPI.DownloadFinishedEventHandler(utorrent_DownloadComplete);
            this.utorrent.LoginError += new WebUIAPI.LoginErrorEventHandler(utorrent_LoginError);
            this.utorrent.Start();

            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);

            if (this.Config.Prowl.Enable)
            {
                this.prowl.ProwlError += new Prowl.ProwlErrorHandler(prowl_ProwlError);
            }

            this.btnBoxcarInvite.Enabled = this.Config.Boxcar.Enable;
        }
Пример #2
0
 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);
 }
Пример #3
0
 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);
 }
Пример #4
0
 public CommandLine()
 {
     utorrent = new WebUIAPI(this.Config);
 }