Free cookie consent management tool by TermsFeed Policy Generator

Changeset 5875


Ignore:
Timestamp:
03/30/11 00:37:17 (14 years ago)
Author:
swagner
Message:

Implemented review comments (#1451)

Location:
trunk/sources/HeuristicLab.Optimization.Views/3.3
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/HeuristicLab.Optimization.Views-3.3.csproj

    r5163 r5875  
    127127      <DependentUpon>BatchRunView.cs</DependentUpon>
    128128    </Compile>
     129    <Compile Include="ResultValueView.cs">
     130      <SubType>UserControl</SubType>
     131    </Compile>
     132    <Compile Include="ResultValueView.Designer.cs">
     133      <DependentUpon>ResultValueView.cs</DependentUpon>
     134    </Compile>
    129135    <Compile Include="RunCollectionBoxPlotView.cs">
    130136      <SubType>UserControl</SubType>
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/ResultCollectionView.cs

    r5842 r5875  
    4343    }
    4444
    45     protected override void RegisterItemEvents(IResult item) {
    46       base.RegisterItemEvents(item);
    47       item.ValueChanged += (o, e) => itemsListView_SelectedIndexChanged(o, e);
    48     }
    49     protected override void DeregisterItemEvents(IResult item) {
    50       item.ValueChanged -= (o, e) => itemsListView_SelectedIndexChanged(o, e);
    51       base.DeregisterItemEvents(item);
    52     }
    53 
    5445    protected override IResult CreateItem() {
    5546      return null;
     
    5748
    5849    protected override void itemsListView_SelectedIndexChanged(object sender, EventArgs e) {
    59       if (InvokeRequired) {
    60         Invoke((Action<object, EventArgs>)itemsListView_SelectedIndexChanged, sender, e);
    61       } else {
    62         AdjustListViewColumnSizes();
    63         if (showDetailsCheckBox.Checked) {
    64           if (itemsListView.SelectedItems.Count == 1) {
    65             IResult result = (IResult)itemsListView.SelectedItems[0].Tag;
    66             detailsGroupBox.Enabled = true;
    67             viewHost.Content = result.Value;
    68           } else {
    69             viewHost.Content = null;
    70             detailsGroupBox.Enabled = false;
    71           }
    72         }
    73       }
     50      viewHost.ViewType = typeof(ResultValueView);
     51      base.itemsListView_SelectedIndexChanged(sender, e);
     52    }
     53    protected override void showDetailsCheckBox_CheckedChanged(object sender, EventArgs e) {
     54      viewHost.ViewType = typeof(ResultValueView);
     55      base.showDetailsCheckBox_CheckedChanged(sender, e);
    7456    }
    7557  }
Note: See TracChangeset for help on using the changeset viewer.