Exemplo n.º 1
0
        async void GetBenchmarkResults(int tryCount = 0)
        {
            bool success = false;

            try
            {
                ViewModel.BenchmarkResults = await PerformanceDataManager.GetScenarioResults(_DeviceIdentifier);

                success = true;
            }
            catch (Exception exc)
            {
                if (tryCount < 3)
                {
                    GetBenchmarkResults(++tryCount);
                }
                else
                {
                    nextButton.Text = exc.ToString();
                }
            }

            if (success)
            {
                nextButton.IsEnabled = true;
                nextButton.Text      = Next;
            }
        }