public ShareTaskWorker( DropBoxController dropboxController,ProxyServerController proxyServerController) { this.DropboxController = dropboxController; this.ProxyServerController = proxyServerController; this.ShareWorker = new BackgroundWorker(); this.ShareWorker.DoWork += new DoWorkEventHandler( ShareWorker_DoWork ); this.ShareWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler( ShareWorker_RunWorkerCompleted ); this.ShareWorker.WorkerReportsProgress = true; this.ShareWorker.WorkerSupportsCancellation = true; }
private void Init_DropBoxController() { log.Info("Initializing Dropbox Controller..."); this.dropBoxController = new DropBoxController(); if (!this.dropBoxController.Login()) { // TODO: WTF Process.GetCurrentProcess().Kill(); } }