예제 #1
0
        private void trackBar1_ValueChanged(object sender, EventArgs e)
        {
            label1.Text = trackBar1.Value.ToString();
            Global.ProxyCheckerThreadsWantSet(trackBar1.Value);

            // Start the ProxyChecker threads
            while (Global.ProxyCheckerCreate())
            {
                ProxyChecker ProxyCheckerObject = new ProxyChecker(this, Global);
                Thread       ProxyCheckerThread = new Thread(ProxyCheckerObject.DoWork);

                ProxyCheckerThread.IsBackground = true;
                ProxyCheckerThread.Start();
            }
        }
예제 #2
0
        private void trackBar1_ValueChanged(object sender, EventArgs e)
        {
            label1.Text = trackBar1.Value.ToString();
            Global.ProxyCheckerThreadsWantSet( trackBar1.Value );

            // Start the ProxyChecker threads
            while (Global.ProxyCheckerCreate()) {

                ProxyChecker ProxyCheckerObject = new ProxyChecker(this, Global);
                Thread ProxyCheckerThread = new Thread(ProxyCheckerObject.DoWork);

                ProxyCheckerThread.IsBackground = true;
                ProxyCheckerThread.Start();

            }
        }