Самке
Updating progress on the screen problem
I am learning about asynchronous programming and i run into a problem with updating progress from async task. For some reason the task is doing its job correctly but the progress.ProgressChanged event doesn't update the progress on the screen correctly.
Result:
Press C to exit
Enter the number:
15
index: 1 progress: 1
index: 3 progress: 6
index: 3 progress: 6
index: 3 progress: 6
index: 3 progress: 6
index: 8 progress: 36
index: 9 progress: 45
index: 8 progress: 45
index: 10 progress: 55
index: 11 progress: 66
index: 15 progress: 120
index: 14 progress: 105
index: 6 progress: 21
Final result: 120
index: 13 progress: 91
index: 12 progress: 78
19 replies