Exemplo n.º 1
0
        private void MyFact_Progressing(object sender, ProgressingEventArgs e)
        {
            int percentage = (e.CurrentNumber + 1) * 100 / e.TargetNumber;


            //bgw.ReportProgress(percentage);
        }
Exemplo n.º 2
0
        private void MyFact_Progressing(object sender, ProgressingEventArgs e)
        {
            this.Dispatcher.Invoke(() =>
            {
                int percentage     = (e.CurrentNumber + 1) * 100 / e.TargetNumber;
                PgbEvolution.Value = percentage;
            });



            //bgw.ReportProgress(percentage);
        }