
How simple it is to use the event arguments available in the event handler. We can get the current progress value and assign it to the progress bar (note: we are working with values of 0 to 100 so we can use the loop indexer, if we were not dealing with such numbers, you need to convert your values using mathematics so that the end result would be a percentage of 100). We can also access the Customer object that we passed by using the e.UserState property.
|