- Timestamp:
- 05/07/10 18:12:52 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionView.cs
r3694 r3709 98 98 while (itemsListView.Items.Count > 0) RemoveListViewItem(itemsListView.Items[0]); 99 99 viewHost.Content = null; 100 runCollectionConstraintCollectionView.Content = null;101 tabControl.TabPages.Remove(constraintPage);102 100 103 101 if (Content != null) { 104 102 if (RunCollection != null) { 105 tabControl.TabPages.Add(constraintPage); 103 if (!tabControl.TabPages.Contains(constraintPage)) 104 tabControl.TabPages.Add(constraintPage); 106 105 runCollectionConstraintCollectionView.Content = RunCollection.Constraints; 107 106 runCollectionConstraintCollectionView.ReadOnly = itemsListView.Items.Count == 0; … … 112 111 UpdateRun(item); 113 112 } 113 } else { 114 runCollectionConstraintCollectionView.Content = null; 115 if (tabControl.TabPages.Contains(constraintPage)) 116 tabControl.TabPages.Remove(constraintPage); 114 117 } 115 118 SetEnabledStateOfControls(); … … 183 186 IRun item = (IRun)itemsListView.SelectedItems[0].Tag; 184 187 detailsGroupBox.Enabled = true; 185 viewHost.ViewType = null;186 188 viewHost.Content = item; 187 189 } else {
Note: See TracChangeset
for help on using the changeset viewer.