예제 #1
0
        private void btnStopCalculating_Click(object sender, EventArgs e)
        {
            progressBar1.Style         = ProgressBarStyle.Blocks;
            btnStopCalculating.Enabled = false;

            abortedSearch = true;

            armorSearcher.Stop();

            foreach (Searcher searcher in accessorySearchers.Keys)
            {
                if (searcher != null && searcher.Running)
                {
                    searcher.Stop();
                }
            }

            accessorySearchers.Clear();

            Thread.Sleep(500);             // Give the threads time to stop

            timerCalculatorUpdator_Tick(null, null);
            timerCalculatorUpdator.Stop();

            btnCalculatePossibilities.Enabled = true;
        }
예제 #2
0
        private void btnStopCalculating_Click(object sender, EventArgs e)
        {
            progressBar1.Style         = ProgressBarStyle.Blocks;
            btnStopCalculating.Enabled = false;

            armorSearcher.Stop();

            foreach (Searcher searcher in accessorySearchers)
            {
                if (searcher != null && searcher.Running)
                {
                    searcher.Stop();
                }
            }
            accessorySearchers.Clear();

            btnCalculatePossibilities.Enabled = true;
        }