Changeset 9906
- Timestamp:
- 08/23/13 12:52:43 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/MenuItems/ExportSymbolicSolutionToExcelMenuItem.cs
r9860 r9906 77 77 var formatter = new SymbolicDataAnalysisExpressionExcelFormatter(); 78 78 var formula = formatter.Format(solution.Model.SymbolicExpressionTree, solution.ProblemData.Dataset); 79 control = (Control)activeView; 79 80 80 81 … … 85 86 string fileName = saveFileDialog.FileName; 86 87 using (BackgroundWorker bg = new BackgroundWorker()) { 88 MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>().AddOperationProgressToView(control, "Exportion solution to " + fileName + "."); 87 89 bg.DoWork += (b, e) => ExportChart(fileName, solution, formula); 90 bg.RunWorkerCompleted += (o, e) => MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromView(control); 88 91 bg.RunWorkerAsync(); 89 92 } … … 391 394 datasetWorksheet.Cells[row + 2, col + 1].Value = dataset.GetDoubleValue(variableNames[col], row); 392 395 else 393 datasetWorksheet.Cells[row + 2, col + 1].Value = dataset.GetValue( col, row);396 datasetWorksheet.Cells[row + 2, col + 1].Value = dataset.GetValue(row, col); 394 397 } 395 398 }
Note: See TracChangeset
for help on using the changeset viewer.