private void Form1_Load(object sender, EventArgs e)
 {
     workHelper = new BackgroundWorkerHelper();
     workHelper.OnCall += TestCall;
     workHelper.OnProgress += TestProgress;
     workHelper.OnCallback += TestResultCallBack;
 }
Beispiel #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            //CPU 的核数,应该是最佳线程数
            nudThreadCount.Value = Environment.ProcessorCount;

            _workHelper             = new BackgroundWorkerHelper();
            _workHelper.OnCall     += TestCall;
            _workHelper.OnProgress += TestProgress;
            _workHelper.OnCallback += TestResultCallBack;
        }