Changeset 5207 for branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3
- Timestamp:
- 01/04/11 02:18:27 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3/ValueConfigurationViews/ValueView.cs
r5110 r5207 46 46 47 47 private void setValueButton_Click(object sender, EventArgs e) { 48 var withoutNullValue = Content.ValidValues.Where(x => !(x is NullValue)); 49 var objectSelectorDialog = new ObjectSelectorDialog<IItem>(withoutNullValue.GroupBy(x => ApplicationManager.Manager.GetDeclaringPlugin(x.GetType()).Name)); 48 var typesWithoutNullValue = Content.ValidTypes.Where(x => x != typeof(NullValue)); 49 var instances = typesWithoutNullValue.Select(x => (IItem)Activator.CreateInstance(x)); 50 var groupedInstances = instances.GroupBy(x => ApplicationManager.Manager.GetDeclaringPlugin(x.GetType()).Name); 51 52 var objectSelectorDialog = new ObjectSelectorDialog<IItem>(groupedInstances); 50 53 if (objectSelectorDialog.ShowDialog(this) == DialogResult.OK) { 51 54 try {
Note: See TracChangeset
for help on using the changeset viewer.