Exemplo n.º 1
0
        private BackgroundWorkerEventArgs _eventArgs;//异常参数

        public ProcessOperator()
        {
            _backgroundWorker = new BackgroundWorker();
            _processForm = new ProcessForm();
            _eventArgs = new BackgroundWorkerEventArgs();
            _backgroundWorker.DoWork += new DoWorkEventHandler(_backgroundWorker_DoWork);
            _backgroundWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(_backgroundWorker_RunWorkerCompleted);
        }
Exemplo n.º 2
0
        private BackgroundWorkerEventArgs _eventArgs; //异常参数

        public ProcessOperator()
        {
            _backgroundWorker                     = new BackgroundWorker();
            _processForm                          = new ProcessForm();
            _eventArgs                            = new BackgroundWorkerEventArgs();
            _backgroundWorker.DoWork             += new DoWorkEventHandler(_backgroundWorker_DoWork);
            _backgroundWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(_backgroundWorker_RunWorkerCompleted);
        }
 public PercentProcessOperator()
 {
     _processForm = new ProcessForm();
     _eventArgs = new BackgroundWorkerEventArgs();
     _processForm.ProcessStyle = System.Windows.Forms.ProgressBarStyle.Continuous;
     _backgroundWorker = new BackgroundWorker();
     _backgroundWorker.WorkerReportsProgress = true;
     _backgroundWorker.DoWork += new DoWorkEventHandler(_backgroundWorker_DoWork);
     _backgroundWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(_backgroundWorker_RunWorkerCompleted);
     _backgroundWorker.ProgressChanged += new ProgressChangedEventHandler(_backgroundWorker_ProgressChanged);
 }
Exemplo n.º 4
0
 public PercentProcessOperator()
 {
     _processForm = new ProcessForm();
     _eventArgs   = new BackgroundWorkerEventArgs();
     _processForm.ProcessStyle = System.Windows.Forms.ProgressBarStyle.Continuous;
     _backgroundWorker         = new BackgroundWorker();
     _backgroundWorker.WorkerReportsProgress = true;
     _backgroundWorker.DoWork             += new DoWorkEventHandler(_backgroundWorker_DoWork);
     _backgroundWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(_backgroundWorker_RunWorkerCompleted);
     _backgroundWorker.ProgressChanged    += new ProgressChangedEventHandler(_backgroundWorker_ProgressChanged);
 }
        static void process_BackgroundWorkerCompleted(object sender, BackgroundWorkerEventArgs e)
        {
            if (e.BackGroundException == null)
            {

            }
        }