Changeset 17560 for branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration
- Timestamp:
- 05/26/20 09:39:14 (5 years ago)
- Location:
- branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/ViewModels/StringValueVM.cs
r17519 r17560 25 25 Item.ConcreteRestrictedItems = value; 26 26 //check if value is still in range 27 if (!Range. Any(x => x ==Value)) {27 if (!Range.Contains(Value)) { 28 28 Value = Range.FirstOrDefault(); 29 29 if (Range.Count() == 0) -
branches/3026_IntegrationIntoSymSpace/HeuristicLab.JsonInterface.OptimizerIntegration/Views/JsonItemValidValuesControl.cs
r17519 r17560 13 13 VM = vm; 14 14 if (VM.Item.ConcreteRestrictedItems != null) { 15 string tmp = VM.Value; 15 16 concreteItemsRestrictor.OnChecked += AddComboOption; 16 17 concreteItemsRestrictor.OnUnchecked += RemoveComboOption; 17 18 concreteItemsRestrictor.Init(VM.Item.ConcreteRestrictedItems); 19 VM.Value = tmp; 18 20 comboBoxValues.DataBindings.Add("SelectedItem", VM, nameof(StringValueVM.Value)); 19 21 } else { … … 51 53 } 52 54 VM.Range = items; 55 53 56 if (VM.Range.Count() <= 0) { 54 57 comboBoxValues.Enabled = false;
Note: See TracChangeset
for help on using the changeset viewer.