Exemplo n.º 1
0
        public AsyncProgressWork(string destFileName, DataGridViewProgressCell dgvProgressCell)
        {
            tokenSource          = new CancellationTokenSource();
            IsSuccess            = true;
            this.DestFileName    = destFileName;
            this.DGVProgressCell = dgvProgressCell;
            this.BgWorker        = new BackgroundWorker();
            this.BgWorker.WorkerReportsProgress      = true;
            this.BgWorker.WorkerSupportsCancellation = true;

            this.BgWorker.DoWork             += BgWorker_DoWork;
            this.BgWorker.ProgressChanged    += BgWorker_ProgressChanged;
            this.BgWorker.RunWorkerCompleted += BgWorker_RunWorkerCompleted;
        }
Exemplo n.º 2
0
 public DataGridViewProgressColumn()
 {
     CellTemplate = new DataGridViewProgressCell();
 }