Changeset 9584 for branches/ExportSymbolicDataAnalysisSolutions/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/MenuItems/ExportSymbolicSolutionToExcelMenuItem.cs
- Timestamp:
- 06/05/13 10:33:30 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ExportSymbolicDataAnalysisSolutions/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/MenuItems/ExportSymbolicSolutionToExcelMenuItem.cs
r9583 r9584 57 57 protected override void OnActiveViewChanged(object sender, EventArgs e) { 58 58 IContentView activeView = MainFormManager.MainForm.ActiveView as IContentView; 59 ToolStripItem.Enabled = activeView != null && activeView.Content as ISymbolicDataAnalysisSolution != null;59 ToolStripItem.Enabled = activeView != null && activeView.Content is ISymbolicDataAnalysisSolution; 60 60 } 61 61 62 62 public override void Execute() { 63 IContentView activeView = MainFormManager.MainForm.ActiveView as IContentView;64 var solution = activeView.Content as ISymbolicDataAnalysisSolution;63 var activeView = (IContentView)MainFormManager.MainForm.ActiveView; 64 var solution = (ISymbolicDataAnalysisSolution)activeView.Content; 65 65 var formatter = new SymbolicDataAnalysisExpressionExcelFormatter(); 66 66 var formula = formatter.Format(solution.Model.SymbolicExpressionTree);
Note: See TracChangeset
for help on using the changeset viewer.