Changeset 3588
- Timestamp:
- 05/03/10 03:31:12 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core.Views/3.3/CheckedItemCollectionView.cs
r3566 r3588 106 106 typeSelectorDialog.Caption = "Select Item"; 107 107 typeSelectorDialog.TypeSelector.Caption = "Available Items"; 108 typeSelectorDialog.TypeSelector.Configure(typeof(T), false, false);108 typeSelectorDialog.TypeSelector.Configure(typeof(T), false, true); 109 109 } 110 110 -
trunk/sources/HeuristicLab.Core.Views/3.3/CheckedItemListView.cs
r3566 r3588 135 135 typeSelectorDialog.Caption = "Select Item"; 136 136 typeSelectorDialog.TypeSelector.Caption = "Available Items"; 137 typeSelectorDialog.TypeSelector.Configure(typeof(T), false, false);137 typeSelectorDialog.TypeSelector.Configure(typeof(T), false, true); 138 138 } 139 139 -
trunk/sources/HeuristicLab.Core.Views/3.3/Clipboard.cs
r3571 r3588 271 271 typeSelectorDialog.Caption = "Select Item"; 272 272 typeSelectorDialog.TypeSelector.Caption = "Available Items"; 273 typeSelectorDialog.TypeSelector.Configure(typeof(T), false, false);273 typeSelectorDialog.TypeSelector.Configure(typeof(T), false, true); 274 274 } 275 275 -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemArrayView.cs
r3566 r3588 129 129 typeSelectorDialog.Caption = "Select Item"; 130 130 typeSelectorDialog.TypeSelector.Caption = "Available Items"; 131 typeSelectorDialog.TypeSelector.Configure(typeof(T), false, false);131 typeSelectorDialog.TypeSelector.Configure(typeof(T), false, true); 132 132 } 133 133 -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemCollectionView.cs
r3566 r3588 104 104 typeSelectorDialog.Caption = "Select Item"; 105 105 typeSelectorDialog.TypeSelector.Caption = "Available Items"; 106 typeSelectorDialog.TypeSelector.Configure(typeof(T), false, false);106 typeSelectorDialog.TypeSelector.Configure(typeof(T), false, true); 107 107 } 108 108 -
trunk/sources/HeuristicLab.Core.Views/3.3/ItemListView.cs
r3566 r3588 132 132 typeSelectorDialog.Caption = "Select Item"; 133 133 typeSelectorDialog.TypeSelector.Caption = "Available Items"; 134 typeSelectorDialog.TypeSelector.Configure(typeof(T), false, false);134 typeSelectorDialog.TypeSelector.Configure(typeof(T), false, true); 135 135 } 136 136 -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorCollectionView.cs
r3566 r3588 44 44 typeSelectorDialog.Caption = "Select Operator"; 45 45 typeSelectorDialog.TypeSelector.Caption = "Available Operators"; 46 typeSelectorDialog.TypeSelector.Configure(typeof(IOperator), false, false);46 typeSelectorDialog.TypeSelector.Configure(typeof(IOperator), false, true); 47 47 } 48 48 -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorListView.cs
r3566 r3588 44 44 typeSelectorDialog.Caption = "Select Operator"; 45 45 typeSelectorDialog.TypeSelector.Caption = "Available Operators"; 46 typeSelectorDialog.TypeSelector.Configure(typeof(IOperator), false, false);46 typeSelectorDialog.TypeSelector.Configure(typeof(IOperator), false, true); 47 47 } 48 48 -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorSetView.cs
r3566 r3588 44 44 typeSelectorDialog.Caption = "Select Operator"; 45 45 typeSelectorDialog.TypeSelector.Caption = "Available Operators"; 46 typeSelectorDialog.TypeSelector.Configure(typeof(IOperator), false, false);46 typeSelectorDialog.TypeSelector.Configure(typeof(IOperator), false, true); 47 47 } 48 48 -
trunk/sources/HeuristicLab.Core.Views/3.3/OperatorsSidebar.cs
r3571 r3588 33 33 protected override void OnInitialized(EventArgs e) { 34 34 base.OnInitialized(e); 35 typeSelector.Configure(typeof(IOperator), false, false);35 typeSelector.Configure(typeof(IOperator), false, true); 36 36 } 37 37 } -
trunk/sources/HeuristicLab.Core.Views/3.3/ScopeView.cs
r3566 r3588 83 83 private void SetEnabledStateOfControls() { 84 84 scopesTreeView.Enabled = Content != null; 85 variableCollectionView.Enabled = Content!= null;85 variableCollectionView.Enabled = scopesTreeView.SelectedNode != null; 86 86 } 87 87 -
trunk/sources/HeuristicLab.Core.Views/3.3/TypeSelector.Designer.cs
r2957 r3588 33 33 protected override void Dispose(bool disposing) { 34 34 if (disposing) { 35 if (typeSelectorDialog != null) typeSelectorDialog.Dispose(); 35 36 if (components != null) components.Dispose(); 36 37 } … … 46 47 private void InitializeComponent() { 47 48 this.components = new System.ComponentModel.Container(); 49 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(TypeSelector)); 48 50 this.typesTreeView = new System.Windows.Forms.TreeView(); 49 51 this.imageList = new System.Windows.Forms.ImageList(this.components); 50 52 this.typesGroupBox = new System.Windows.Forms.GroupBox(); 51 53 this.splitContainer = new System.Windows.Forms.SplitContainer(); 54 this.typeParametersSplitContainer = new System.Windows.Forms.SplitContainer(); 52 55 this.searchLabel = new System.Windows.Forms.Label(); 53 56 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(); 54 60 this.descriptionTextBox = new System.Windows.Forms.TextBox(); 55 61 this.toolTip = new System.Windows.Forms.ToolTip(this.components); 62 this.columnHeader1 = new System.Windows.Forms.ColumnHeader(); 56 63 this.typesGroupBox.SuspendLayout(); 57 64 this.splitContainer.Panel1.SuspendLayout(); 58 65 this.splitContainer.Panel2.SuspendLayout(); 59 66 this.splitContainer.SuspendLayout(); 67 this.typeParametersSplitContainer.Panel1.SuspendLayout(); 68 this.typeParametersSplitContainer.Panel2.SuspendLayout(); 69 this.typeParametersSplitContainer.SuspendLayout(); 70 this.typeParametersGroupBox.SuspendLayout(); 60 71 this.SuspendLayout(); 61 72 // … … 72 83 this.typesTreeView.SelectedImageIndex = 0; 73 84 this.typesTreeView.ShowNodeToolTips = true; 74 this.typesTreeView.Size = new System.Drawing.Size(2 91, 166);85 this.typesTreeView.Size = new System.Drawing.Size(219, 287); 75 86 this.typesTreeView.TabIndex = 0; 76 87 this.typesTreeView.VisibleChanged += new System.EventHandler(this.typesTreeView_VisibleChanged); … … 90 101 this.typesGroupBox.Location = new System.Drawing.Point(0, 0); 91 102 this.typesGroupBox.Name = "typesGroupBox"; 92 this.typesGroupBox.Size = new System.Drawing.Size( 303, 306);103 this.typesGroupBox.Size = new System.Drawing.Size(231, 614); 93 104 this.typesGroupBox.TabIndex = 0; 94 105 this.typesGroupBox.TabStop = false; … … 104 115 // splitContainer.Panel1 105 116 // 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); 109 118 // 110 119 // splitContainer.Panel2 111 120 // 112 121 this.splitContainer.Panel2.Controls.Add(this.descriptionTextBox); 113 this.splitContainer.Size = new System.Drawing.Size(2 97, 287);114 this.splitContainer.SplitterDistance = 198;122 this.splitContainer.Size = new System.Drawing.Size(225, 595); 123 this.splitContainer.SplitterDistance = 471; 115 124 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; 116 147 // 117 148 // searchLabel … … 130 161 this.searchTextBox.Location = new System.Drawing.Point(29, 3); 131 162 this.searchTextBox.Name = "searchTextBox"; 132 this.searchTextBox.Size = new System.Drawing.Size( 265, 20);163 this.searchTextBox.Size = new System.Drawing.Size(193, 20); 133 164 this.searchTextBox.TabIndex = 2; 134 165 this.toolTip.SetToolTip(this.searchTextBox, "Enter string to search for types"); 135 166 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); 136 214 // 137 215 // descriptionTextBox … … 146 224 this.descriptionTextBox.ReadOnly = true; 147 225 this.descriptionTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; 148 this.descriptionTextBox.Size = new System.Drawing.Size(2 91, 79);226 this.descriptionTextBox.Size = new System.Drawing.Size(219, 114); 149 227 this.descriptionTextBox.TabIndex = 0; 150 228 // … … 155 233 this.Controls.Add(this.typesGroupBox); 156 234 this.Name = "TypeSelector"; 157 this.Size = new System.Drawing.Size( 303, 306);235 this.Size = new System.Drawing.Size(231, 614); 158 236 this.typesGroupBox.ResumeLayout(false); 159 237 this.splitContainer.Panel1.ResumeLayout(false); 160 this.splitContainer.Panel1.PerformLayout();161 238 this.splitContainer.Panel2.ResumeLayout(false); 162 239 this.splitContainer.Panel2.PerformLayout(); 163 240 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); 164 246 this.ResumeLayout(false); 165 247 … … 176 258 protected System.Windows.Forms.TextBox searchTextBox; 177 259 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; 178 265 179 266 } -
trunk/sources/HeuristicLab.Core.Views/3.3/TypeSelector.cs
r3528 r3588 32 32 protected List<TreeNode> treeNodes; 33 33 protected string currentSearchString; 34 protected TypeSelectorDialog typeSelectorDialog; 34 35 35 36 protected Type baseType; … … 83 84 this.showNotInstantiableTypes = showNotInstantiableTypes; 84 85 this.showGenericTypes = showGenericTypes; 86 87 typeParametersSplitContainer.Panel2Collapsed = !showGenericTypes; 85 88 86 89 TreeNode selectedNode = typesTreeView.SelectedNode; … … 140 143 RestoreSelectedNode(selectedNode); 141 144 Filter(searchTextBox.Text); 145 146 UpdateTypeParameters(); 142 147 } 143 148 } … … 201 206 } 202 207 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 } 207 258 } 208 259 … … 229 280 } 230 281 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 231 291 protected virtual void searchTextBox_TextChanged(object sender, System.EventArgs e) { 232 292 Filter(searchTextBox.Text); … … 236 296 if (typesTreeView.SelectedNode == null) SelectedType = null; 237 297 else SelectedType = typesTreeView.SelectedNode.Tag as Type; 298 UpdateTypeParameters(); 238 299 UpdateDescription(); 239 300 } 240 241 301 protected virtual void typesTreeView_ItemDrag(object sender, ItemDragEventArgs e) { 242 302 TreeNode node = (TreeNode)e.Item; … … 250 310 } 251 311 } 252 253 312 protected virtual void typesTreeView_VisibleChanged(object sender, EventArgs e) { 254 313 if (Visible) SetTreeNodeVisibility(); 255 314 } 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 256 328 257 329 #region Helpers -
trunk/sources/HeuristicLab.Core.Views/3.3/TypeSelectorDialog.Designer.cs
r2924 r3588 52 52 this.okButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 53 53 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); 55 55 this.okButton.Name = "okButton"; 56 56 this.okButton.Size = new System.Drawing.Size(75, 23); … … 63 63 this.cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 64 64 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); 66 66 this.cancelButton.Name = "cancelButton"; 67 67 this.cancelButton.Size = new System.Drawing.Size(75, 23); … … 78 78 this.typeSelector.Location = new System.Drawing.Point(12, 12); 79 79 this.typeSelector.Name = "typeSelector"; 80 this.typeSelector.Size = new System.Drawing.Size( 449, 350);80 this.typeSelector.Size = new System.Drawing.Size(584, 520); 81 81 this.typeSelector.TabIndex = 3; 82 82 this.typeSelector.SelectedTypeChanged += new System.EventHandler(this.typeSelector_SelectedTypeChanged); … … 88 88 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 89 89 this.CancelButton = this.cancelButton; 90 this.ClientSize = new System.Drawing.Size( 473, 403);90 this.ClientSize = new System.Drawing.Size(608, 573); 91 91 this.Controls.Add(this.typeSelector); 92 92 this.Controls.Add(this.cancelButton); -
trunk/sources/HeuristicLab.Core.Views/3.3/VariableView.cs
r3566 r3588 114 114 typeSelectorDialog = new TypeSelectorDialog(); 115 115 typeSelectorDialog.Caption = "Select Value"; 116 typeSelectorDialog.TypeSelector.Configure(typeof(IItem), false, false);116 typeSelectorDialog.TypeSelector.Configure(typeof(IItem), false, true); 117 117 } 118 118 if (typeSelectorDialog.ShowDialog(this) == DialogResult.OK) { -
trunk/sources/HeuristicLab.Optimization.Views/3.3/AlgorithmView.cs
r3566 r3588 165 165 problemTypeSelectorDialog.Caption = "Select Problem"; 166 166 problemTypeSelectorDialog.TypeSelector.Caption = "Available Problems"; 167 problemTypeSelectorDialog.TypeSelector.Configure(Content.ProblemType, false, false);167 problemTypeSelectorDialog.TypeSelector.Configure(Content.ProblemType, false, true); 168 168 } 169 169 if (problemTypeSelectorDialog.ShowDialog(this) == DialogResult.OK) { -
trunk/sources/HeuristicLab.Optimization.Views/3.3/BatchRunView.cs
r3566 r3588 152 152 algorithmTypeSelectorDialog.Caption = "Select Algorithm"; 153 153 algorithmTypeSelectorDialog.TypeSelector.Caption = "Available Algorithms"; 154 algorithmTypeSelectorDialog.TypeSelector.Configure(typeof(IAlgorithm), false, false);154 algorithmTypeSelectorDialog.TypeSelector.Configure(typeof(IAlgorithm), false, true); 155 155 } 156 156 if (algorithmTypeSelectorDialog.ShowDialog(this) == DialogResult.OK) { -
trunk/sources/HeuristicLab.Optimization.Views/3.3/OptimizerListView.cs
r3566 r3588 46 46 typeSelectorDialog.Caption = "Select Optimizer"; 47 47 typeSelectorDialog.TypeSelector.Caption = "Available Optimizers"; 48 typeSelectorDialog.TypeSelector.Configure(typeof(IOptimizer), false, false);48 typeSelectorDialog.TypeSelector.Configure(typeof(IOptimizer), false, true); 49 49 } 50 50 -
trunk/sources/HeuristicLab.Parameters.Views/3.3/ValueLookupParameterView.cs
r3566 r3588 126 126 typeSelectorDialog = new TypeSelectorDialog(); 127 127 typeSelectorDialog.Caption = "Select Value"; 128 typeSelectorDialog.TypeSelector.Configure(Content.DataType, false, false);128 typeSelectorDialog.TypeSelector.Configure(Content.DataType, false, true); 129 129 } 130 130 if (typeSelectorDialog.ShowDialog(this) == DialogResult.OK) { -
trunk/sources/HeuristicLab.Parameters.Views/3.3/ValueParameterView.cs
r3566 r3588 114 114 typeSelectorDialog = new TypeSelectorDialog(); 115 115 typeSelectorDialog.Caption = "Select Value"; 116 typeSelectorDialog.TypeSelector.Configure(Content.DataType, false, false);116 typeSelectorDialog.TypeSelector.Configure(Content.DataType, false, true); 117 117 } 118 118 if (typeSelectorDialog.ShowDialog(this) == DialogResult.OK) {
Note: See TracChangeset
for help on using the changeset viewer.