コード例 #1
0
        private void DrawView(object sender, EventArgs e)
        {
            var isChanged = false;

            for (int i = _analysisThreads.Count - 1; i >= 0; i--)
            {
                var thread = _analysisThreads[i];
                if (!thread.IsAlive)
                {
                    _analysisThreads.Remove(thread);
                    isChanged = true;
                }
            }

            if (isChanged)
            {
                ConvertHelper.BindDataSource <IntervalRateViewModel>(_mainForm.Controls["IntervalRateView"], _intervalRatePrizeList.OrderByDescending(x => x.WinningRate).ToList());
            }
        }