protected override void OnShown(EventArgs e) { base.OnShown(e); new Thread(() => { var scenario = new Backtest(Framework.Current); scenario.Run(); Reset(); }).Start(); }
protected override void OnShown(EventArgs e) { base.OnShown(e); new Thread(new ThreadStart(() => { Scenario scenario = new Backtest(Framework.Current); scenario.Run(); Reset(); })).Start(); }