Free cookie consent management tool by TermsFeed Policy Generator

Changeset 5819 for trunk/sources


Ignore:
Timestamp:
03/23/11 14:41:32 (14 years ago)
Author:
mkommend
Message:

#1451: Displayed result value in details group box of ResultCollectionView.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/ResultCollectionView.cs

    r5445 r5819  
    2020#endregion
    2121
     22using System;
    2223using HeuristicLab.Core;
    2324using HeuristicLab.Core.Views;
     
    4546      return null;
    4647    }
     48
     49    protected override void itemsListView_SelectedIndexChanged(object sender, EventArgs e) {
     50      AdjustListViewColumnSizes();
     51      if (showDetailsCheckBox.Checked) {
     52        if (itemsListView.SelectedItems.Count == 1) {
     53          IResult result = (IResult)itemsListView.SelectedItems[0].Tag;
     54          detailsGroupBox.Enabled = true;
     55          viewHost.Content = result.Value;
     56        } else {
     57          viewHost.Content = null;
     58          detailsGroupBox.Enabled = false;
     59        }
     60      }
     61    }
    4762  }
    4863}
Note: See TracChangeset for help on using the changeset viewer.