protected void OnProgressChanged(ProgressChangedArgs e)
 {
     if (ProgressChanged != null)
     {
         ProgressChanged(this, e);
     }
 }
示例#2
0
        private void OnWorkerProgressChanged(object sender, ProgressChangedArgs e)
        {
            // Cross thread - so you don't get the cross-threading exception
            if (this.InvokeRequired)
            {
                this.BeginInvoke((MethodInvoker) delegate
                {
                    OnWorkerProgressChanged(sender, e);
                });
                return;
            }

            // Change control
            //this.label1.Text = e.Progress;
            this.toolStripStatusLabel1.Text = "Completed";

            this.PopulateListView(e.Progress);
        }