コード例 #1
0
ファイル: Vectorizer.cs プロジェクト: ubhatwar/vectorizer
        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();
        }