private void SetCurrentStatus(object sender, AlgoStatusEventArgs e) { FormHelpers.SafeInvoke(this, () => { algorithmsListView1.SetSpeedStatus(e.Device, e.Algorithm, e.Status); }); }
private void StepUpBenchmarkStepProgress(object sender, StepUpEventArgs e) { FormHelpers.SafeInvoke(this, () => { SetLabelBenchmarkSteps(e.CurrentIndex, e.AlgorithmCount); if (e.CurrentIndex <= progressBarBenchmarkSteps.Maximum) { progressBarBenchmarkSteps.Value = e.CurrentIndex; } }); }
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(); } }); }