Пример #1
0
 private void RedrawButtonClick(object sender, EventArgs e)
 {
     RedrawLowResBest();
     RedrawLowResLast();
     LowResBest.Refresh();
     HighResBest.Refresh();
     LowResLast.Refresh();
     HighResLast.Refresh();
 }
Пример #2
0
        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();
        }