Exemplo n.º 1
0
 protected void OnProgressChanged(ProgressChangedArgs e)
 {
     if (ProgressChanged != null)
     {
         ProgressChanged(this, e);
     }
 }
Exemplo n.º 2
0
        private void OnWorkerProgressChanged(object sender, ProgressChangedArgs e)
        {
            //cross thread - so you don't get the cross theading exception
            if (this.InvokeRequired)
            {
                this.BeginInvoke((MethodInvoker) delegate
                {
                    OnWorkerProgressChanged(sender, e);
                });
            }

            //change control
            this.label1.Text = e.Progress;
        }