private void RedrawButtonClick(object sender, EventArgs e) { RedrawLowResBest(); RedrawLowResLast(); LowResBest.Refresh(); HighResBest.Refresh(); LowResLast.Refresh(); HighResLast.Refresh(); }
private void BetterSampleFound() { consoleTextBox.AppendText("Better sample found! Error is: " + (int)(1 / myController.Algorithm.CurrentScore) + Environment.NewLine); if ((DateTime.Now - previousBetterSampleFound).TotalMilliseconds <= MINIMUM_REFRESH_PERIOD) { return; } previousBetterSampleFound = DateTime.Now; RedrawLowResBest(); RedrawDifference(); HighResBest.Refresh(); Difference.Refresh(); LowResBest.Refresh(); }