private void UpdateProgressBarWidth() { progressBarRectangle.Width = expectedFunctionCallsOnPlatform * progressBarStep - functionCallOnPlatformCounter * progressBarStep; functionCallOnPlatformCounter++; UpdateProgressBarColor(); }