private void startTest() { frm_BackTestResult frm = new frm_BackTestResult(si, assembly, this.propertyGrid1.SelectedObject); frm.Text = string.Format("{0}-{1}-{2}", si.Code, si.Name, this.cb_policy.SelectedItem.ToString()); //frm.MdiParent = this.MdiParent; frm.Show(); this.Close(); }
private void ContinueBackTest() { if (this.InvokeRequired) { this.Invoke(new ContinueBackTestDelegate(ContinueBackTest)); } else { GridRowTag grt = (GridRowTag)grid_stocks.Rows[currentBackTestCount].Tag; string name = this.grid_stocks.Rows[currentBackTestCount].Cells[3].Value.ToString(); frm_BackTestResult frm = new frm_BackTestResult(grt.si, grt.assembly, grt.parameter); frm.Test_Finished += frm_Test_Finished; frm.Text = string.Format("{0}-{1}-{2}", grt.si.Code, grt.si.Name, name); frm.Show(); } }
private void StartBackTest(int count) { if (this.InvokeRequired) { this.Invoke(new StartBackTestDelegate(StartBackTest), new object[] { count }); } else { for (int i = 0; i < count; i++) { if (i < totalBackTestCount) { GridRowTag grt = (GridRowTag)grid_stocks.Rows[i].Tag; string name = this.grid_stocks.Rows[i].Cells[3].Value.ToString(); frm_BackTestResult frm = new frm_BackTestResult(grt.si, grt.assembly, grt.parameter); frm.Test_Finished += frm_Test_Finished; frm.Text = string.Format("{0}-{1}-{2}", grt.si.Code, grt.si.Name, name); frm.Show(); } } } }