Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8655


Ignore:
Timestamp:
09/14/12 11:40:21 (12 years ago)
Author:
jkarder
Message:

#1853:

  • fixed possible deselection of all value configurations
  • set AutoScaleMode to Inherit in OptimizableView
Location:
branches/ParameterConfigurationEncoding
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding.Views/3.3/HeuristicLab.Encodings.ParameterConfigurationEncoding.Views-3.3.csproj

    r8544 r8655  
    121121    <Compile Include="Properties\AssemblyInfo.cs" />
    122122    <None Include="Properties\AssemblyInfo.cs.frame" />
     123    <Compile Include="ValueConfigurationViews\CheckedValueConfigurationListView.cs">
     124      <SubType>UserControl</SubType>
     125    </Compile>
     126    <Compile Include="ValueConfigurationViews\CheckedValueConfigurationListView.Designer.cs">
     127      <DependentUpon>CheckedValueConfigurationListView.cs</DependentUpon>
     128    </Compile>
    123129    <Compile Include="ValueConfigurationViews\RangeView.cs">
    124130      <SubType>UserControl</SubType>
  • branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding.Views/3.3/OptimizableView.Designer.cs

    r8524 r8655  
    7979      //
    8080      this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
    81       this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     81      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
    8282      this.Controls.Add(this.optimizeCheckBox);
    8383      this.Controls.Add(this.viewHost);
  • branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding.Views/3.3/OptimizableView.cs

    r8648 r8655  
    7070            } else {
    7171              viewHost.Content = pc.ValueConfigurations;
     72              viewHost.ViewType = typeof(CheckedValueConfigurationListView);
    7273            }
    7374          } else if (vc != null) {
  • branches/ParameterConfigurationEncoding/HeuristicLab.Encodings.ParameterConfigurationEncoding/3.3/ValueConfigurations/CheckedValueConfigurationCollection.cs

    r8644 r8655  
    2828
    2929namespace HeuristicLab.Encodings.ParameterConfigurationEncoding {
    30   // TODO: check that at least 1 element needs to be selected
    3130  // TODO: control creatable item types ### EDIT: done?
    3231  [StorableClass]
     
    8180    private void RegisterEvents() {
    8281      this.ItemsAdded += new CollectionItemsChangedEventHandler<IndexedItem<IValueConfiguration>>(CheckedValueConfigurationList_ItemsAdded);
    83       this.CheckedItemsChanged += new CollectionItemsChangedEventHandler<IndexedItem<IValueConfiguration>>(CheckedValueConfigurationList_CheckedItemsChanged);
    8482    }
    8583
    8684    private void DeregisterEvents() {
    87       this.CheckedItemsChanged -= new CollectionItemsChangedEventHandler<IndexedItem<IValueConfiguration>>(CheckedValueConfigurationList_CheckedItemsChanged);
    8885      this.ItemsAdded -= new CollectionItemsChangedEventHandler<IndexedItem<IValueConfiguration>>(CheckedValueConfigurationList_ItemsAdded);
    8986    }
     
    9996      }
    10097    }
    101     private void CheckedValueConfigurationList_CheckedItemsChanged(object sender, CollectionItemsChangedEventArgs<IndexedItem<IValueConfiguration>> e) {
    102       // TODO: view does not get notified
    103       if (!this.CheckedItems.Any()) this.SetItemCheckedState(e.Items.Single().Value, true);
    104     }
    10598    #endregion
    106 
    10799  }
    108100}
Note: See TracChangeset for help on using the changeset viewer.