Ejemplo n.º 1
0
        public void CalcBenchmarkDevicesAlgorithmQueue()
        {
            var count = BenchmarkManager.CalcBenchDevAlgoQueue();

            // GUI stuff
            progressBarBenchmarkSteps.Maximum = count;
            progressBarBenchmarkSteps.Value   = 0;
            SetLabelBenchmarkSteps(0, count);
        }
Ejemplo n.º 2
0
        public void EndBenchmark(object sender, bool hasFailedAlgos)
        {
            if (ApplicationStateManager.BurnCalled)
            {
                return;
            }
            FormHelpers.SafeInvoke(this, () => {
                _benchmarkingTimer.Stop();
                Logger.Debug("FormBenchmark", "EndBenchmark() benchmark routine finished");

                //CopyBenchmarks();

                BenchmarkStoppedGuiSettings();
                // check if all ok
                if (!hasFailedAlgos && StartMiningOnFinish == false)
                {
                    MessageBox.Show(
                        Translations.Tr("All benchmarks have been successful"),
                        Translations.Tr("Benchmark finished report"),
                        MessageBoxButtons.OK);
                }
                else if (StartMiningOnFinish == false)
                {
                    var result = MessageBox.Show(
                        //Translations.Tr("Not all benchmarks finished successfully. Retry to re-run the benchmark process against unbenchmarked algos or Cancel to disable unbenchmarked algorithms."),
                        Translations.Tr("Not all benchmarks finished successfully."),
                        Translations.Tr("Benchmark finished report"),
                        MessageBoxButtons.OK);

                    //if (result == DialogResult.Retry)
                    //{
                    //    StartButonClick();
                    //    return;
                    //}

                    // update algos status
                    BenchmarkManager.CalcBenchDevAlgoQueue();
                }

                if (_exitWhenFinished || StartMiningOnFinish)
                {
                    Close();
                }
            });
        }