Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/29/12 09:22:21 (12 years ago)
Author:
jkarder
Message:

#1853:

  • enhanced combinations count calculation
  • restructured code
  • minor code improvements
  • added license information
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
    222using HeuristicLab.Core.Views;
    323using HeuristicLab.Data;
     
    2343    }
    2444
    25     protected override void RegisterContentEvents() {
    26       base.RegisterContentEvents();
    27     }
    28 
    29     protected override void DeregisterContentEvents() {
    30       base.DeregisterContentEvents();
    31     }
    32 
    3345    protected override void OnContentChanged() {
    3446      base.OnContentChanged();
     
    4355      }
    4456    }
    45 
    46     protected override void SetEnabledStateOfControls() {
    47       base.SetEnabledStateOfControls();
    48     }
    4957  }
    5058}
  • 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
     22using System;
    223using System.Linq;
    324using System.Windows.Forms;
     
    829
    930namespace HeuristicLab.Encodings.ParameterConfigurationEncoding.Views {
     31  /// <summary>
     32  /// The visual representation of a <see cref="ConstrainedValue"/>.
     33  /// </summary>
    1034  [View("Value View")]
    1135  [Content(typeof(ConstrainedValue), true)]
    1236  public partial class ValueView : ItemView {
    13 
     37    /// <summary>
     38    /// Gets or sets the variable to represent visually.
     39    /// </summary>
    1440    public new ConstrainedValue Content {
    1541      get { return (ConstrainedValue)base.Content; }
     
    3460      base.SetEnabledStateOfControls();
    3561      if (Content != null) {
    36         clearValueButton.Enabled = Content.Value != null && Content.IsNullable; // IsNullable ist in diesem fall nicht richtig gesetzt
     62        clearValueButton.Enabled = Content.Value != null && Content.IsNullable; // in this case IsNullable is not set correctly
    3763        setValueButton.Enabled = Content.ValueDataType != null;
    3864      }
Note: See TracChangeset for help on using the changeset viewer.