Changeset 8535 for branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding.Views/3.3/ValueConfigurationViews
- Timestamp:
- 08/29/12 09:22:21 (12 years ago)
- Location:
- branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding.Views/3.3/ValueConfigurationViews
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding.Views/3.3/ValueConfigurationViews/RangeView.cs
r8517 r8535 1 using System.Windows.Forms; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 * 5 * This file is part of HeuristicLab. 6 * 7 * HeuristicLab is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * HeuristicLab is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 #endregion 21 2 22 using HeuristicLab.Core.Views; 3 23 using HeuristicLab.Data; … … 23 43 } 24 44 25 protected override void RegisterContentEvents() {26 base.RegisterContentEvents();27 }28 29 protected override void DeregisterContentEvents() {30 base.DeregisterContentEvents();31 }32 33 45 protected override void OnContentChanged() { 34 46 base.OnContentChanged(); … … 43 55 } 44 56 } 45 46 protected override void SetEnabledStateOfControls() {47 base.SetEnabledStateOfControls();48 }49 57 } 50 58 } -
branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding.Views/3.3/ValueConfigurationViews/ValueView.cs
r8517 r8535 1 using System; 1 #region License Information 2 /* HeuristicLab 3 * Copyright (C) 2002-2012 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 * 5 * This file is part of HeuristicLab. 6 * 7 * HeuristicLab is free software: you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation, either version 3 of the License, or 10 * (at your option) any later version. 11 * 12 * HeuristicLab is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>. 19 */ 20 #endregion 21 22 using System; 2 23 using System.Linq; 3 24 using System.Windows.Forms; … … 8 29 9 30 namespace HeuristicLab.Encodings.ParameterConfigurationEncoding.Views { 31 /// <summary> 32 /// The visual representation of a <see cref="ConstrainedValue"/>. 33 /// </summary> 10 34 [View("Value View")] 11 35 [Content(typeof(ConstrainedValue), true)] 12 36 public partial class ValueView : ItemView { 13 37 /// <summary> 38 /// Gets or sets the variable to represent visually. 39 /// </summary> 14 40 public new ConstrainedValue Content { 15 41 get { return (ConstrainedValue)base.Content; } … … 34 60 base.SetEnabledStateOfControls(); 35 61 if (Content != null) { 36 clearValueButton.Enabled = Content.Value != null && Content.IsNullable; // IsNullable ist in diesem fall nicht richtig gesetzt62 clearValueButton.Enabled = Content.Value != null && Content.IsNullable; // in this case IsNullable is not set correctly 37 63 setValueButton.Enabled = Content.ValueDataType != null; 38 64 }
Note: See TracChangeset
for help on using the changeset viewer.