Free cookie consent management tool by TermsFeed Policy Generator

Changeset 4099


Ignore:
Timestamp:
07/25/10 01:11:47 (13 years ago)
Author:
swagner
Message:

Fixed disabling of details group boxes (#1100)

Location:
trunk/sources
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core.Views/3.3/ItemArrayView.cs

    r4096 r4099  
    120120                               !Content.IsReadOnly && !ReadOnly;
    121121        itemsListView.Enabled = true;
    122         detailsGroupBox.Enabled = true;
     122        detailsGroupBox.Enabled = itemsListView.SelectedItems.Count == 1;
    123123      }
    124124    }
  • trunk/sources/HeuristicLab.Core.Views/3.3/ItemCollectionView.cs

    r4096 r4099  
    8888        removeButton.Enabled = !Content.IsReadOnly && !ReadOnly && itemsListView.SelectedItems.Count > 0;
    8989        itemsListView.Enabled = true;
    90         detailsGroupBox.Enabled = true;
     90        detailsGroupBox.Enabled = itemsListView.SelectedItems.Count == 1;
    9191      }
    9292    }
  • trunk/sources/HeuristicLab.Core.Views/3.3/ItemListView.cs

    r4096 r4099  
    123123                               !Content.IsReadOnly && !ReadOnly;
    124124        itemsListView.Enabled = true;
    125         detailsGroupBox.Enabled = true;
     125        detailsGroupBox.Enabled = itemsListView.SelectedItems.Count == 1;
    126126      }
    127127    }
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionView.cs

    r4096 r4099  
    136136        runCollectionConstraintCollectionView.ReadOnly = itemsListView.Items.Count == 0;
    137137        itemsListView.Enabled = true;
    138         detailsGroupBox.Enabled = true;
     138        detailsGroupBox.Enabled = itemsListView.SelectedItems.Count == 1;
    139139        removeButton.Enabled = itemsListView.SelectedItems.Count > 0 && !Content.IsReadOnly && !ReadOnly;
    140140        clearButton.Enabled = itemsListView.Items.Count > 0 && !Content.IsReadOnly && !ReadOnly;
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/RunView.cs

    r4096 r4099  
    7777      base.SetEnabledStateOfControls();
    7878      listView.Enabled = Content != null;
     79      detailsGroupBox.Enabled = (Content != null) && (listView.SelectedItems.Count == 1);
    7980      viewHost.Enabled = Content != null;
    8081      changeColorButton.Enabled = Content != null;
Note: See TracChangeset for help on using the changeset viewer.