private void StartOptimize() { uiWeeklyData_superGridControlTable.PrimaryGrid.DataSource = null; var optimizer = new Optimizer(_strategy, OptimizationParameters.Instance.Parameters, uiStrategy_dateTimeAdvOISStart.Value, uiStrategy_dateTimeAdvOISEnd.Value); optimizer.ProgressEvent += OptimizeProgressIncrement; optimizer.StartOptimize(uiSummary_dataGridViewBT, uiBTSummaryChart, uiBTSummaryGroupPanel); Invoke((Action)delegate { Report("In Sample/Out Of Sample procedure completed.", InformerMessageType.Success); uiStrategy_buttonXStart.Enabled = true; uiStrategy_buttonXStop.Enabled = false; }); }