コード例 #1
0
        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;
        }
コード例 #2
0
ファイル: User.cs プロジェクト: lixiaoyi1108/SecuruStik
 private void Init_DropBoxController()
 {
     log.Info("Initializing Dropbox Controller...");
     this.dropBoxController = new DropBoxController();
     if (!this.dropBoxController.Login())
     {
         // TODO: WTF
         Process.GetCurrentProcess().Kill();
     }
 }