Changeset 5835
- Timestamp:
- 03/28/11 13:34:40 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.4/SymbolicExpressionView.cs
r5829 r5835 43 43 IEnumerable<ISymbolicExpressionTreeStringFormatter> formatters = ApplicationManager.Manager.GetInstances<ISymbolicExpressionTreeStringFormatter>(); 44 44 treeFormattersList = new List<ISymbolicExpressionTreeStringFormatter>(); 45 int selectedIndex = -1;46 45 foreach (ISymbolicExpressionTreeStringFormatter formatter in formatters) { 47 if (formatter is ISymbolicExpressionTreeStringFormatter)48 selectedIndex = treeFormattersList.Count;49 46 treeFormattersList.Add(formatter); 50 47 formattersComboBox.Items.Add(formatter.Name); 51 48 } 52 formattersComboBox.SelectedIndex = selectedIndex; 49 if (formattersComboBox.Items.Count > 0) 50 formattersComboBox.SelectedIndex = 0; 51 else 52 formattersComboBox.SelectedIndex = -1; 53 53 } 54 54 -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisSingleObjectiveProblem.cs
r5809 r5835 20 20 #endregion 21 21 22 using System; 22 23 using System.Linq; 23 24 using HeuristicLab.Common; … … 27 28 using HeuristicLab.Parameters; 28 29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 29 using System;30 30 31 31 namespace HeuristicLab.Problems.DataAnalysis.Symbolic { … … 70 70 : base(original, cloner) { 71 71 RegisterEventHandler(); 72 MaximizationParameter.Hidden = true; 72 73 } 73 74 … … 77 78 Parameters.Add(new FixedValueParameter<DoubleValue>(BestKnownQualityParameterName, "The quality of the best known solution of this problem.", new DoubleValue())); 78 79 80 MaximizationParameter.Hidden = true; 79 81 RegisterEventHandler(); 80 82 }
Note: See TracChangeset
for help on using the changeset viewer.