Changeset 5898 for trunk/sources/HeuristicLab.Core.Views
- Timestamp:
- 03/30/11 18:27:08 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core.Views/3.3/TypeSelector.cs
r5859 r5898 86 86 87 87 public virtual void Configure(Type baseType, bool showNotInstantiableTypes, bool showGenericTypes) { 88 Configure(new List<Type>() { baseType }, showNotInstantiableTypes, showGenericTypes );89 } 90 91 public virtual void Configure(IEnumerable<Type> baseTypes, bool showNotInstantiableTypes, bool showGenericTypes ) {88 Configure(new List<Type>() { baseType }, showNotInstantiableTypes, showGenericTypes, true); 89 } 90 91 public virtual void Configure(IEnumerable<Type> baseTypes, bool showNotInstantiableTypes, bool showGenericTypes, bool allTypes) { 92 92 if (baseTypes == null) throw new ArgumentNullException(); 93 93 if (InvokeRequired) 94 Invoke(new Action<IEnumerable<Type>, bool, bool >(Configure), baseTypes, showNotInstantiableTypes, showGenericTypes);94 Invoke(new Action<IEnumerable<Type>, bool, bool, bool>(Configure), baseTypes, showNotInstantiableTypes, showGenericTypes, allTypes); 95 95 else { 96 96 this.baseTypes = baseTypes; … … 114 114 foreach (IPluginDescription plugin in plugins) { 115 115 TreeNode pluginNode = new TreeNode(); 116 pluginNode.Text = string.Format("{0} [{1}.{2}]", plugin.Name, plugin.Version.Major, plugin.Version.Minor);116 pluginNode.Text = string.Format("{0} {1}.{2}", plugin.Name, plugin.Version.Major, plugin.Version.Minor); 117 117 pluginNode.ImageIndex = 1; 118 118 pluginNode.SelectedImageIndex = pluginNode.ImageIndex; 119 119 pluginNode.Tag = plugin; 120 120 121 var types = from t in ApplicationManager.Manager.GetTypes(BaseTypes, plugin, ShowNotInstantiableTypes )121 var types = from t in ApplicationManager.Manager.GetTypes(BaseTypes, plugin, ShowNotInstantiableTypes, allTypes) 122 122 orderby t.Name ascending 123 123 select t; … … 258 258 Type[] constraints = param.GetGenericParameterConstraints(); 259 259 bool showNotInstantiableTypes = !param.GenericParameterAttributes.HasFlag(GenericParameterAttributes.DefaultConstructorConstraint); 260 typeSelectorDialog.TypeSelector.Configure(constraints, showNotInstantiableTypes, true );260 typeSelectorDialog.TypeSelector.Configure(constraints, showNotInstantiableTypes, true, true); 261 261 262 262 if (typeSelectorDialog.ShowDialog(this) == DialogResult.OK) {
Note: See TracChangeset
for help on using the changeset viewer.