Changeset 5337 for branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3
- Timestamp:
- 01/20/11 01:30:44 (14 years ago)
- Location:
- branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3/MetaOptimizationProblemView.cs
r5328 r5337 72 72 73 73 if (dlgResult == DialogResult.OK) { 74 EngineAlgorithm algorithm = Content.Algorithm;74 IAlgorithm algorithm = Content.Algorithm; 75 75 if(Content.Problems.Count > 0) algorithm.Problem = Content.Problems.First(); 76 76 Experiment experiment; … … 93 93 Type type = e.Data.GetData("Type") as Type; 94 94 if ((type != null) && (Content.AlgorithmType.ValidTypes.Contains(type))) { 95 EngineAlgorithm algorithm = e.Data.GetData("Value") as EngineAlgorithm;96 if (algorithm .Problem == null || Content.ProblemType.ValidTypes.Contains(algorithm.Problem.GetType())) {95 IAlgorithm algorithm = e.Data.GetData("Value") as IAlgorithm; 96 if (algorithm != null && algorithm.Problem == null || Content.ProblemType.ValidTypes.Contains(algorithm.Problem.GetType())) { 97 97 e.Effect = DragDropEffects.Copy; 98 98 } … … 101 101 protected void parameterCollectionView_DragDrop(object sender, System.Windows.Forms.DragEventArgs e) { 102 102 if (e.Effect != DragDropEffects.None) { 103 EngineAlgorithm algorithm = e.Data.GetData("Value") as EngineAlgorithm;103 IAlgorithm algorithm = e.Data.GetData("Value") as IAlgorithm; 104 104 Content.ImportAlgorithm(algorithm); 105 105 } -
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3/ObjectSelectorDialog.Designer.cs
r5110 r5337 46 46 this.itemsListView.MultiSelect = false; 47 47 this.itemsListView.Name = "itemsListView"; 48 this.itemsListView.Size = new System.Drawing.Size( 387, 501);48 this.itemsListView.Size = new System.Drawing.Size(653, 360); 49 49 this.itemsListView.TabIndex = 2; 50 50 this.itemsListView.UseCompatibleStateImageBehavior = false; … … 72 72 this.cancelButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 73 73 this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel; 74 this.cancelButton.Location = new System.Drawing.Point( 324, 519);74 this.cancelButton.Location = new System.Drawing.Point(590, 378); 75 75 this.cancelButton.Name = "cancelButton"; 76 76 this.cancelButton.Size = new System.Drawing.Size(75, 23); … … 84 84 this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK; 85 85 this.okButton.Enabled = false; 86 this.okButton.Location = new System.Drawing.Point( 243, 519);86 this.okButton.Location = new System.Drawing.Point(509, 378); 87 87 this.okButton.Name = "okButton"; 88 88 this.okButton.Size = new System.Drawing.Size(75, 23); … … 98 98 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 99 99 this.CancelButton = this.cancelButton; 100 this.ClientSize = new System.Drawing.Size( 411, 554);100 this.ClientSize = new System.Drawing.Size(677, 413); 101 101 this.Controls.Add(this.cancelButton); 102 102 this.Controls.Add(this.okButton); -
branches/HeuristicLab.MetaOptimization/HeuristicLab.Problems.MetaOptimization.Views/3.3/ObjectSelectorDialog.resx
r4516 r5337 113 113 </resheader> 114 114 <resheader name="reader"> 115 <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version= 2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>115 <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> 116 116 </resheader> 117 117 <resheader name="writer"> 118 <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version= 2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>118 <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> 119 119 </resheader> 120 120 </root>
Note: See TracChangeset
for help on using the changeset viewer.