Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3588


Ignore:
Timestamp:
05/03/10 03:31:12 (15 years ago)
Author:
swagner
Message:

Worked on UI support for choosing generic type parameters (#42)

Location:
trunk/sources
Files:
20 edited

Legend:

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

    r3566 r3588  
    106106        typeSelectorDialog.Caption = "Select Item";
    107107        typeSelectorDialog.TypeSelector.Caption = "Available Items";
    108         typeSelectorDialog.TypeSelector.Configure(typeof(T), false, false);
     108        typeSelectorDialog.TypeSelector.Configure(typeof(T), false, true);
    109109      }
    110110
  • trunk/sources/HeuristicLab.Core.Views/3.3/CheckedItemListView.cs

    r3566 r3588  
    135135        typeSelectorDialog.Caption = "Select Item";
    136136        typeSelectorDialog.TypeSelector.Caption = "Available Items";
    137         typeSelectorDialog.TypeSelector.Configure(typeof(T), false, false);
     137        typeSelectorDialog.TypeSelector.Configure(typeof(T), false, true);
    138138      }
    139139
  • trunk/sources/HeuristicLab.Core.Views/3.3/Clipboard.cs

    r3571 r3588  
    271271        typeSelectorDialog.Caption = "Select Item";
    272272        typeSelectorDialog.TypeSelector.Caption = "Available Items";
    273         typeSelectorDialog.TypeSelector.Configure(typeof(T), false, false);
     273        typeSelectorDialog.TypeSelector.Configure(typeof(T), false, true);
    274274      }
    275275
  • trunk/sources/HeuristicLab.Core.Views/3.3/ItemArrayView.cs

    r3566 r3588  
    129129        typeSelectorDialog.Caption = "Select Item";
    130130        typeSelectorDialog.TypeSelector.Caption = "Available Items";
    131         typeSelectorDialog.TypeSelector.Configure(typeof(T), false, false);
     131        typeSelectorDialog.TypeSelector.Configure(typeof(T), false, true);
    132132      }
    133133
  • trunk/sources/HeuristicLab.Core.Views/3.3/ItemCollectionView.cs

    r3566 r3588  
    104104        typeSelectorDialog.Caption = "Select Item";
    105105        typeSelectorDialog.TypeSelector.Caption = "Available Items";
    106         typeSelectorDialog.TypeSelector.Configure(typeof(T), false, false);
     106        typeSelectorDialog.TypeSelector.Configure(typeof(T), false, true);
    107107      }
    108108
  • trunk/sources/HeuristicLab.Core.Views/3.3/ItemListView.cs

    r3566 r3588  
    132132        typeSelectorDialog.Caption = "Select Item";
    133133        typeSelectorDialog.TypeSelector.Caption = "Available Items";
    134         typeSelectorDialog.TypeSelector.Configure(typeof(T), false, false);
     134        typeSelectorDialog.TypeSelector.Configure(typeof(T), false, true);
    135135      }
    136136
  • trunk/sources/HeuristicLab.Core.Views/3.3/OperatorCollectionView.cs

    r3566 r3588  
    4444        typeSelectorDialog.Caption = "Select Operator";
    4545        typeSelectorDialog.TypeSelector.Caption = "Available Operators";
    46         typeSelectorDialog.TypeSelector.Configure(typeof(IOperator), false, false);
     46        typeSelectorDialog.TypeSelector.Configure(typeof(IOperator), false, true);
    4747      }
    4848
  • trunk/sources/HeuristicLab.Core.Views/3.3/OperatorListView.cs

    r3566 r3588  
    4444        typeSelectorDialog.Caption = "Select Operator";
    4545        typeSelectorDialog.TypeSelector.Caption = "Available Operators";
    46         typeSelectorDialog.TypeSelector.Configure(typeof(IOperator), false, false);
     46        typeSelectorDialog.TypeSelector.Configure(typeof(IOperator), false, true);
    4747      }
    4848
  • trunk/sources/HeuristicLab.Core.Views/3.3/OperatorSetView.cs

    r3566 r3588  
    4444        typeSelectorDialog.Caption = "Select Operator";
    4545        typeSelectorDialog.TypeSelector.Caption = "Available Operators";
    46         typeSelectorDialog.TypeSelector.Configure(typeof(IOperator), false, false);
     46        typeSelectorDialog.TypeSelector.Configure(typeof(IOperator), false, true);
    4747      }
    4848
  • trunk/sources/HeuristicLab.Core.Views/3.3/OperatorsSidebar.cs

    r3571 r3588  
    3333    protected override void OnInitialized(EventArgs e) {
    3434      base.OnInitialized(e);
    35       typeSelector.Configure(typeof(IOperator), false, false);
     35      typeSelector.Configure(typeof(IOperator), false, true);
    3636    }
    3737  }
  • trunk/sources/HeuristicLab.Core.Views/3.3/ScopeView.cs

    r3566 r3588  
    8383    private void SetEnabledStateOfControls() {
    8484      scopesTreeView.Enabled = Content != null;
    85       variableCollectionView.Enabled = Content != null;
     85      variableCollectionView.Enabled = scopesTreeView.SelectedNode != null;
    8686    }
    8787
  • trunk/sources/HeuristicLab.Core.Views/3.3/TypeSelector.Designer.cs

    r2957 r3588  
    3333    protected override void Dispose(bool disposing) {
    3434      if (disposing) {
     35        if (typeSelectorDialog != null) typeSelectorDialog.Dispose();
    3536        if (components != null) components.Dispose();
    3637      }
     
    4647    private void InitializeComponent() {
    4748      this.components = new System.ComponentModel.Container();
     49      System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TypeSelector));
    4850      this.typesTreeView = new System.Windows.Forms.TreeView();
    4951      this.imageList = new System.Windows.Forms.ImageList(this.components);
    5052      this.typesGroupBox = new System.Windows.Forms.GroupBox();
    5153      this.splitContainer = new System.Windows.Forms.SplitContainer();
     54      this.typeParametersSplitContainer = new System.Windows.Forms.SplitContainer();
    5255      this.searchLabel = new System.Windows.Forms.Label();
    5356      this.searchTextBox = new System.Windows.Forms.TextBox();
     57      this.typeParametersGroupBox = new System.Windows.Forms.GroupBox();
     58      this.setTypeParameterButton = new System.Windows.Forms.Button();
     59      this.typeParametersListView = new System.Windows.Forms.ListView();
    5460      this.descriptionTextBox = new System.Windows.Forms.TextBox();
    5561      this.toolTip = new System.Windows.Forms.ToolTip(this.components);
     62      this.columnHeader1 = new System.Windows.Forms.ColumnHeader();
    5663      this.typesGroupBox.SuspendLayout();
    5764      this.splitContainer.Panel1.SuspendLayout();
    5865      this.splitContainer.Panel2.SuspendLayout();
    5966      this.splitContainer.SuspendLayout();
     67      this.typeParametersSplitContainer.Panel1.SuspendLayout();
     68      this.typeParametersSplitContainer.Panel2.SuspendLayout();
     69      this.typeParametersSplitContainer.SuspendLayout();
     70      this.typeParametersGroupBox.SuspendLayout();
    6071      this.SuspendLayout();
    6172      //
     
    7283      this.typesTreeView.SelectedImageIndex = 0;
    7384      this.typesTreeView.ShowNodeToolTips = true;
    74       this.typesTreeView.Size = new System.Drawing.Size(291, 166);
     85      this.typesTreeView.Size = new System.Drawing.Size(219, 287);
    7586      this.typesTreeView.TabIndex = 0;
    7687      this.typesTreeView.VisibleChanged += new System.EventHandler(this.typesTreeView_VisibleChanged);
     
    90101      this.typesGroupBox.Location = new System.Drawing.Point(0, 0);
    91102      this.typesGroupBox.Name = "typesGroupBox";
    92       this.typesGroupBox.Size = new System.Drawing.Size(303, 306);
     103      this.typesGroupBox.Size = new System.Drawing.Size(231, 614);
    93104      this.typesGroupBox.TabIndex = 0;
    94105      this.typesGroupBox.TabStop = false;
     
    104115      // splitContainer.Panel1
    105116      //
    106       this.splitContainer.Panel1.Controls.Add(this.searchLabel);
    107       this.splitContainer.Panel1.Controls.Add(this.searchTextBox);
    108       this.splitContainer.Panel1.Controls.Add(this.typesTreeView);
     117      this.splitContainer.Panel1.Controls.Add(this.typeParametersSplitContainer);
    109118      //
    110119      // splitContainer.Panel2
    111120      //
    112121      this.splitContainer.Panel2.Controls.Add(this.descriptionTextBox);
    113       this.splitContainer.Size = new System.Drawing.Size(297, 287);
    114       this.splitContainer.SplitterDistance = 198;
     122      this.splitContainer.Size = new System.Drawing.Size(225, 595);
     123      this.splitContainer.SplitterDistance = 471;
    115124      this.splitContainer.TabIndex = 2;
     125      //
     126      // typeParametersSplitContainer
     127      //
     128      this.typeParametersSplitContainer.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     129                  | System.Windows.Forms.AnchorStyles.Left)
     130                  | System.Windows.Forms.AnchorStyles.Right)));
     131      this.typeParametersSplitContainer.Location = new System.Drawing.Point(0, 0);
     132      this.typeParametersSplitContainer.Name = "typeParametersSplitContainer";
     133      this.typeParametersSplitContainer.Orientation = System.Windows.Forms.Orientation.Horizontal;
     134      //
     135      // typeParametersSplitContainer.Panel1
     136      //
     137      this.typeParametersSplitContainer.Panel1.Controls.Add(this.typesTreeView);
     138      this.typeParametersSplitContainer.Panel1.Controls.Add(this.searchLabel);
     139      this.typeParametersSplitContainer.Panel1.Controls.Add(this.searchTextBox);
     140      //
     141      // typeParametersSplitContainer.Panel2
     142      //
     143      this.typeParametersSplitContainer.Panel2.Controls.Add(this.typeParametersGroupBox);
     144      this.typeParametersSplitContainer.Size = new System.Drawing.Size(225, 472);
     145      this.typeParametersSplitContainer.SplitterDistance = 319;
     146      this.typeParametersSplitContainer.TabIndex = 0;
    116147      //
    117148      // searchLabel
     
    130161      this.searchTextBox.Location = new System.Drawing.Point(29, 3);
    131162      this.searchTextBox.Name = "searchTextBox";
    132       this.searchTextBox.Size = new System.Drawing.Size(265, 20);
     163      this.searchTextBox.Size = new System.Drawing.Size(193, 20);
    133164      this.searchTextBox.TabIndex = 2;
    134165      this.toolTip.SetToolTip(this.searchTextBox, "Enter string to search for types");
    135166      this.searchTextBox.TextChanged += new System.EventHandler(this.searchTextBox_TextChanged);
     167      //
     168      // typeParametersGroupBox
     169      //
     170      this.typeParametersGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     171                  | System.Windows.Forms.AnchorStyles.Left)
     172                  | System.Windows.Forms.AnchorStyles.Right)));
     173      this.typeParametersGroupBox.Controls.Add(this.setTypeParameterButton);
     174      this.typeParametersGroupBox.Controls.Add(this.typeParametersListView);
     175      this.typeParametersGroupBox.Location = new System.Drawing.Point(3, 3);
     176      this.typeParametersGroupBox.Name = "typeParametersGroupBox";
     177      this.typeParametersGroupBox.Size = new System.Drawing.Size(219, 143);
     178      this.typeParametersGroupBox.TabIndex = 0;
     179      this.typeParametersGroupBox.TabStop = false;
     180      this.typeParametersGroupBox.Text = "Type Parameters";
     181      //
     182      // setTypeParameterButton
     183      //
     184      this.setTypeParameterButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     185      this.setTypeParameterButton.Enabled = false;
     186      this.setTypeParameterButton.Image = HeuristicLab.Common.Resources.VS2008ImageLibrary.Edit;
     187      this.setTypeParameterButton.Location = new System.Drawing.Point(189, 19);
     188      this.setTypeParameterButton.Name = "setTypeParameterButton";
     189      this.setTypeParameterButton.Size = new System.Drawing.Size(24, 24);
     190      this.setTypeParameterButton.TabIndex = 1;
     191      this.toolTip.SetToolTip(this.setTypeParameterButton, "Set Type Parameter");
     192      this.setTypeParameterButton.UseVisualStyleBackColor = true;
     193      this.setTypeParameterButton.Click += new System.EventHandler(this.setTypeParameterButton_Click);
     194      //
     195      // typeParametersListView
     196      //
     197      this.typeParametersListView.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
     198                  | System.Windows.Forms.AnchorStyles.Left)
     199                  | System.Windows.Forms.AnchorStyles.Right)));
     200      this.typeParametersListView.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
     201            this.columnHeader1});
     202      this.typeParametersListView.FullRowSelect = true;
     203      this.typeParametersListView.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None;
     204      this.typeParametersListView.Location = new System.Drawing.Point(6, 19);
     205      this.typeParametersListView.MultiSelect = false;
     206      this.typeParametersListView.Name = "typeParametersListView";
     207      this.typeParametersListView.ShowItemToolTips = true;
     208      this.typeParametersListView.Size = new System.Drawing.Size(177, 118);
     209      this.typeParametersListView.TabIndex = 0;
     210      this.typeParametersListView.UseCompatibleStateImageBehavior = false;
     211      this.typeParametersListView.View = System.Windows.Forms.View.Details;
     212      this.typeParametersListView.SelectedIndexChanged += new System.EventHandler(this.typeParametersListView_SelectedIndexChanged);
     213      this.typeParametersListView.DoubleClick += new System.EventHandler(this.typeParametersListView_DoubleClick);
    136214      //
    137215      // descriptionTextBox
     
    146224      this.descriptionTextBox.ReadOnly = true;
    147225      this.descriptionTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
    148       this.descriptionTextBox.Size = new System.Drawing.Size(291, 79);
     226      this.descriptionTextBox.Size = new System.Drawing.Size(219, 114);
    149227      this.descriptionTextBox.TabIndex = 0;
    150228      //
     
    155233      this.Controls.Add(this.typesGroupBox);
    156234      this.Name = "TypeSelector";
    157       this.Size = new System.Drawing.Size(303, 306);
     235      this.Size = new System.Drawing.Size(231, 614);
    158236      this.typesGroupBox.ResumeLayout(false);
    159237      this.splitContainer.Panel1.ResumeLayout(false);
    160       this.splitContainer.Panel1.PerformLayout();
    161238      this.splitContainer.Panel2.ResumeLayout(false);
    162239      this.splitContainer.Panel2.PerformLayout();
    163240      this.splitContainer.ResumeLayout(false);
     241      this.typeParametersSplitContainer.Panel1.ResumeLayout(false);
     242      this.typeParametersSplitContainer.Panel1.PerformLayout();
     243      this.typeParametersSplitContainer.Panel2.ResumeLayout(false);
     244      this.typeParametersSplitContainer.ResumeLayout(false);
     245      this.typeParametersGroupBox.ResumeLayout(false);
    164246      this.ResumeLayout(false);
    165247
     
    176258    protected System.Windows.Forms.TextBox searchTextBox;
    177259    protected System.Windows.Forms.ToolTip toolTip;
     260    protected System.Windows.Forms.SplitContainer typeParametersSplitContainer;
     261    protected System.Windows.Forms.GroupBox typeParametersGroupBox;
     262    protected System.Windows.Forms.ListView typeParametersListView;
     263    protected System.Windows.Forms.Button setTypeParameterButton;
     264    protected System.Windows.Forms.ColumnHeader columnHeader1;
    178265
    179266  }
  • trunk/sources/HeuristicLab.Core.Views/3.3/TypeSelector.cs

    r3528 r3588  
    3232    protected List<TreeNode> treeNodes;
    3333    protected string currentSearchString;
     34    protected TypeSelectorDialog typeSelectorDialog;
    3435
    3536    protected Type baseType;
     
    8384        this.showNotInstantiableTypes = showNotInstantiableTypes;
    8485        this.showGenericTypes = showGenericTypes;
     86
     87        typeParametersSplitContainer.Panel2Collapsed = !showGenericTypes;
    8588
    8689        TreeNode selectedNode = typesTreeView.SelectedNode;
     
    140143        RestoreSelectedNode(selectedNode);
    141144        Filter(searchTextBox.Text);
     145
     146        UpdateTypeParameters();
    142147      }
    143148    }
     
    201206    }
    202207
    203     public event EventHandler SelectedTypeChanged;
    204     protected virtual void OnSelectedTypeChanged() {
    205       if (SelectedTypeChanged != null)
    206         SelectedTypeChanged(this, EventArgs.Empty);
     208    protected virtual void UpdateTypeParameters() {
     209      typeParametersListView.Items.Clear();
     210      if ((SelectedType == null) || !SelectedType.ContainsGenericParameters) {
     211        typeParametersGroupBox.Enabled = false;
     212        typeParametersSplitContainer.Panel2Collapsed = true;
     213      } else {
     214        typeParametersGroupBox.Enabled = true;
     215        typeParametersSplitContainer.Panel2Collapsed = false;
     216        setTypeParameterButton.Enabled = false;
     217
     218        foreach (Type param in SelectedType.GetGenericArguments()) {
     219          if (param.IsGenericParameter) {
     220            ListViewItem item = new ListViewItem();
     221            item.Text = param.Name;
     222
     223            item.ToolTipText = "Constraints:";
     224            Type[] constraints = param.GetGenericParameterConstraints();
     225            if (constraints.Length == 0) {
     226              item.ToolTipText += " none";
     227            } else {
     228              foreach (Type constraint in constraints)
     229                item.ToolTipText += " " + constraint.GetPrettyName();
     230            }
     231
     232            item.Tag = param;
     233            typeParametersListView.Items.Add(item);
     234          }
     235        }
     236        typeParametersListView.Columns[0].AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent);
     237      }
     238    }
     239
     240    protected virtual void SetTypeParameter() {
     241      if (typeSelectorDialog == null) {
     242        typeSelectorDialog = new TypeSelectorDialog();
     243        typeSelectorDialog.Caption = "Select Type of Generic Type Parameter";
     244      }
     245      Type param = typeParametersListView.SelectedItems[0].Tag as Type;
     246      Type[] contraints = param.GetGenericParameterConstraints();
     247      typeSelectorDialog.TypeSelector.Configure(typeof(IItem), true, true);
     248
     249      if (typeSelectorDialog.ShowDialog(this) == DialogResult.OK) {
     250        Type selected = typeSelectorDialog.TypeSelector.SelectedType;
     251        Type[] parameters = SelectedType.GetGenericArguments();
     252        parameters[param.GenericParameterPosition] = selected;
     253        SelectedType = SelectedType.GetGenericTypeDefinition().MakeGenericType(parameters);
     254
     255        typeParametersListView.SelectedItems[0].Text = param.Name + ": " + selected.GetPrettyName();
     256        typeParametersListView.Columns[0].AutoResize(ColumnHeaderAutoResizeStyle.ColumnContent);
     257      }
    207258    }
    208259
     
    229280    }
    230281
     282    #region Events
     283    public event EventHandler SelectedTypeChanged;
     284    protected virtual void OnSelectedTypeChanged() {
     285      if (SelectedTypeChanged != null)
     286        SelectedTypeChanged(this, EventArgs.Empty);
     287    }
     288    #endregion
     289
     290    #region Control Events
    231291    protected virtual void searchTextBox_TextChanged(object sender, System.EventArgs e) {
    232292      Filter(searchTextBox.Text);
     
    236296      if (typesTreeView.SelectedNode == null) SelectedType = null;
    237297      else SelectedType = typesTreeView.SelectedNode.Tag as Type;
     298      UpdateTypeParameters();
    238299      UpdateDescription();
    239300    }
    240 
    241301    protected virtual void typesTreeView_ItemDrag(object sender, ItemDragEventArgs e) {
    242302      TreeNode node = (TreeNode)e.Item;
     
    250310      }
    251311    }
    252 
    253312    protected virtual void typesTreeView_VisibleChanged(object sender, EventArgs e) {
    254313      if (Visible) SetTreeNodeVisibility();
    255314    }
     315
     316    protected virtual void typeParametersListView_SelectedIndexChanged(object sender, EventArgs e) {
     317      setTypeParameterButton.Enabled = typeParametersListView.SelectedItems.Count == 1;
     318    }
     319    protected virtual void typeParametersListView_DoubleClick(object sender, EventArgs e) {
     320      if (typeParametersListView.SelectedItems.Count == 1)
     321        SetTypeParameter();
     322    }
     323
     324    protected virtual void setTypeParameterButton_Click(object sender, EventArgs e) {
     325      SetTypeParameter();
     326    }
     327    #endregion
    256328
    257329    #region Helpers
  • trunk/sources/HeuristicLab.Core.Views/3.3/TypeSelectorDialog.Designer.cs

    r2924 r3588  
    5252      this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
    5353      this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
    54       this.okButton.Location = new System.Drawing.Point(305, 368);
     54      this.okButton.Location = new System.Drawing.Point(440, 538);
    5555      this.okButton.Name = "okButton";
    5656      this.okButton.Size = new System.Drawing.Size(75, 23);
     
    6363      this.cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
    6464      this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
    65       this.cancelButton.Location = new System.Drawing.Point(386, 368);
     65      this.cancelButton.Location = new System.Drawing.Point(521, 538);
    6666      this.cancelButton.Name = "cancelButton";
    6767      this.cancelButton.Size = new System.Drawing.Size(75, 23);
     
    7878      this.typeSelector.Location = new System.Drawing.Point(12, 12);
    7979      this.typeSelector.Name = "typeSelector";
    80       this.typeSelector.Size = new System.Drawing.Size(449, 350);
     80      this.typeSelector.Size = new System.Drawing.Size(584, 520);
    8181      this.typeSelector.TabIndex = 3;
    8282      this.typeSelector.SelectedTypeChanged += new System.EventHandler(this.typeSelector_SelectedTypeChanged);
     
    8888      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
    8989      this.CancelButton = this.cancelButton;
    90       this.ClientSize = new System.Drawing.Size(473, 403);
     90      this.ClientSize = new System.Drawing.Size(608, 573);
    9191      this.Controls.Add(this.typeSelector);
    9292      this.Controls.Add(this.cancelButton);
  • trunk/sources/HeuristicLab.Core.Views/3.3/VariableView.cs

    r3566 r3588  
    114114        typeSelectorDialog = new TypeSelectorDialog();
    115115        typeSelectorDialog.Caption = "Select Value";
    116         typeSelectorDialog.TypeSelector.Configure(typeof(IItem), false, false);
     116        typeSelectorDialog.TypeSelector.Configure(typeof(IItem), false, true);
    117117      }
    118118      if (typeSelectorDialog.ShowDialog(this) == DialogResult.OK) {
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/AlgorithmView.cs

    r3566 r3588  
    165165        problemTypeSelectorDialog.Caption = "Select Problem";
    166166        problemTypeSelectorDialog.TypeSelector.Caption = "Available Problems";
    167         problemTypeSelectorDialog.TypeSelector.Configure(Content.ProblemType, false, false);
     167        problemTypeSelectorDialog.TypeSelector.Configure(Content.ProblemType, false, true);
    168168      }
    169169      if (problemTypeSelectorDialog.ShowDialog(this) == DialogResult.OK) {
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/BatchRunView.cs

    r3566 r3588  
    152152        algorithmTypeSelectorDialog.Caption = "Select Algorithm";
    153153        algorithmTypeSelectorDialog.TypeSelector.Caption = "Available Algorithms";
    154         algorithmTypeSelectorDialog.TypeSelector.Configure(typeof(IAlgorithm), false, false);
     154        algorithmTypeSelectorDialog.TypeSelector.Configure(typeof(IAlgorithm), false, true);
    155155      }
    156156      if (algorithmTypeSelectorDialog.ShowDialog(this) == DialogResult.OK) {
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/OptimizerListView.cs

    r3566 r3588  
    4646        typeSelectorDialog.Caption = "Select Optimizer";
    4747        typeSelectorDialog.TypeSelector.Caption = "Available Optimizers";
    48         typeSelectorDialog.TypeSelector.Configure(typeof(IOptimizer), false, false);
     48        typeSelectorDialog.TypeSelector.Configure(typeof(IOptimizer), false, true);
    4949      }
    5050
  • trunk/sources/HeuristicLab.Parameters.Views/3.3/ValueLookupParameterView.cs

    r3566 r3588  
    126126        typeSelectorDialog = new TypeSelectorDialog();
    127127        typeSelectorDialog.Caption = "Select Value";
    128         typeSelectorDialog.TypeSelector.Configure(Content.DataType, false, false);
     128        typeSelectorDialog.TypeSelector.Configure(Content.DataType, false, true);
    129129      }
    130130      if (typeSelectorDialog.ShowDialog(this) == DialogResult.OK) {
  • trunk/sources/HeuristicLab.Parameters.Views/3.3/ValueParameterView.cs

    r3566 r3588  
    114114        typeSelectorDialog = new TypeSelectorDialog();
    115115        typeSelectorDialog.Caption = "Select Value";
    116         typeSelectorDialog.TypeSelector.Configure(Content.DataType, false, false);
     116        typeSelectorDialog.TypeSelector.Configure(Content.DataType, false, true);
    117117      }
    118118      if (typeSelectorDialog.ShowDialog(this) == DialogResult.OK) {
Note: See TracChangeset for help on using the changeset viewer.