private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e) { Backtest backtest = new Backtest(backtestSymbolParams, backtestSymbolDates, sender as BackgroundWorker); List <String> backtestSymbols = new List <String>(); List <String> _backtestDates = new List <String>(); TestResult testResult = new TestResult(); testResult = backtest.Run(); e.Result = testResult; }
private void backgroundWorker3_DoWork(object sender, DoWorkEventArgs e) { Backtest backtest = new Backtest(backtestSymbolParams, backtestSymbolDates, sender as BackgroundWorker); TestResult testResult = new TestResult(); testResult = backtest.Run(); Backtest secondPassBacktest = new Backtest(testResult, backtestSymbolDates, sender as BackgroundWorker); e.Result = testResult; }