Changeset 6954
- Timestamp:
- 11/07/11 10:54:58 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core.Views/3.3/TypeSelector.cs
r6866 r6954 105 105 this.showNotInstantiableTypes = showNotInstantiableTypes; 106 106 this.showGenericTypes = showGenericTypes; 107 bool selectedTypeFound = false; 107 108 108 109 typeParametersSplitContainer.Panel2Collapsed = !showGenericTypes; … … 151 152 typeNode.Tag = type; 152 153 pluginNode.Nodes.Add(typeNode); 154 if (type.Equals(selectedType)) selectedTypeFound = true; 153 155 } 154 156 } … … 156 158 treeNodes.Add(pluginNode); 157 159 } 160 if (!selectedTypeFound) SelectedType = null; 158 161 foreach (TreeNode node in treeNodes) 159 162 typesTreeView.Nodes.Add((TreeNode)node.Clone()); … … 189 192 int j = 0; 190 193 while (j < typesTreeView.Nodes[i].Nodes.Count) { 191 if (!typesTreeView.Nodes[i].Nodes[j].Text.ToLower().Contains(searchString)) 194 if (!typesTreeView.Nodes[i].Nodes[j].Text.ToLower().Contains(searchString)) { 195 if ((typesTreeView.Nodes[i].Nodes[j].Tag as Type).Equals(selectedType)) 196 SelectedType = null; 192 197 typesTreeView.Nodes[i].Nodes[j].Remove(); 193 else198 } else 194 199 j++; 195 200 }
Note: See TracChangeset
for help on using the changeset viewer.