Changeset 5750 for branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/SymbolicExpressionView.cs
- Timestamp:
- 03/18/11 12:50:28 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis Refactoring/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/SymbolicExpressionView.cs
r5513 r5750 25 25 using HeuristicLab.MainForm.WindowsForms; 26 26 using HeuristicLab.PluginInfrastructure; 27 using System; 27 28 28 29 namespace HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views { … … 60 61 if (Content == null || formattersComboBox.SelectedIndex < 0) 61 62 textBox.Text = string.Empty; 62 else 63 textBox.Text = treeFormattersList[formattersComboBox.SelectedIndex].Format(Content); 63 else { 64 try { 65 textBox.Text = treeFormattersList[formattersComboBox.SelectedIndex].Format(Content); 66 } 67 catch (ArgumentException) { textBox.Text = "Cannot format the symbolic expression tree with the selected formatter."; } 68 catch (NotSupportedException) { textBox.Text = "Formatting of the symbolic expression tree is not supported by the selected formatter."; } 69 } 64 70 } 65 71
Note: See TracChangeset
for help on using the changeset viewer.