I know, that you can't set the value of CancellationPending of the BackgroundWorker class
The default is false.
If you call the CancelAsync()-method, CancellationPending is true.
I need to call this method, that my program stops measuring. Now you are back on the GUI. You can change values and again press the 'Start' button.
The following problem:
CancellationPending is still true. But I need it to be false.