- Timestamp:
- 04/21/10 07:17:21 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core.Views/3.3/ItemArrayView.cs
r3455 r3456 196 196 #region ListView Events 197 197 protected virtual void itemsListView_SelectedIndexChanged(object sender, EventArgs e) { 198 addButton.Enabled = itemsListView.SelectedItems.Count > 0 && !Content.IsReadOnly && !ReadOnly;198 addButton.Enabled = itemsListView.SelectedItems.Count > 0 && (Content != null) && !Content.IsReadOnly && !ReadOnly; 199 199 moveUpButton.Enabled = itemsListView.SelectedItems.Count == 1 && 200 200 itemsListView.SelectedIndices[0] != 0 && 201 !Content.IsReadOnly && !ReadOnly;201 (Content != null) && !Content.IsReadOnly && !ReadOnly; 202 202 moveDownButton.Enabled = itemsListView.SelectedItems.Count == 1 && 203 203 itemsListView.SelectedIndices[0] != itemsListView.Items.Count - 1 && 204 !Content.IsReadOnly && !ReadOnly;205 removeButton.Enabled = itemsListView.SelectedItems.Count > 0 && !Content.IsReadOnly && !ReadOnly;204 (Content != null) && !Content.IsReadOnly && !ReadOnly; 205 removeButton.Enabled = itemsListView.SelectedItems.Count > 0 && (Content != null) && !Content.IsReadOnly && !ReadOnly; 206 206 207 207 if (itemsListView.SelectedItems.Count == 1) {
Note: See TracChangeset
for help on using the changeset viewer.