Changeset 5875
- Timestamp:
- 03/30/11 00:37:17 (14 years ago)
- 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 127 127 <DependentUpon>BatchRunView.cs</DependentUpon> 128 128 </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> 129 135 <Compile Include="RunCollectionBoxPlotView.cs"> 130 136 <SubType>UserControl</SubType> -
trunk/sources/HeuristicLab.Optimization.Views/3.3/ResultCollectionView.cs
r5842 r5875 43 43 } 44 44 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 54 45 protected override IResult CreateItem() { 55 46 return null; … … 57 48 58 49 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); 74 56 } 75 57 }
Note: See TracChangeset
for help on using the changeset viewer.