- Timestamp:
- 10/06/10 21:38:31 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Classification/HeuristicLab.Algorithms.DataAnalysis.Views/3.3/CrossValidationView.cs
r4561 r4563 192 192 193 193 private void workersNumericUpDown_Validated(object sender, EventArgs e) { 194 if ( foldsNumericUpDown.Text == string.Empty)194 if (workersNumericUpDown.Text == string.Empty) 195 195 workersNumericUpDown.Text = workersNumericUpDown.Value.ToString(); 196 196 } … … 261 261 problemTypeSelectorDialog.Caption = "Select Problem"; 262 262 problemTypeSelectorDialog.TypeSelector.Caption = "Available Problems"; 263 problemTypeSelectorDialog.TypeSelector.Configure( typeof(IDataAnalysisProblem), false, true);263 problemTypeSelectorDialog.TypeSelector.Configure(Content.ProblemType, false, true); 264 264 } 265 265 if (problemTypeSelectorDialog.ShowDialog(this) == DialogResult.OK) { 266 266 try { 267 Content.Problem = (I DataAnalysisProblem)problemTypeSelectorDialog.TypeSelector.CreateInstanceOfSelectedType();267 Content.Problem = (ISingleObjectiveDataAnalysisProblem)problemTypeSelectorDialog.TypeSelector.CreateInstanceOfSelectedType(); 268 268 } 269 269 catch (Exception ex) { … … 282 282 try { 283 283 if (error != null) throw error; 284 I DataAnalysisProblem problem = content as IDataAnalysisProblem;284 ISingleObjectiveDataAnalysisProblem problem = content as ISingleObjectiveDataAnalysisProblem; 285 285 if (problem == null && (Content.Algorithm.ProblemType.IsAssignableFrom(content.GetType()))) 286 286 Invoke(new Action(() => … … 339 339 private void algorithmProblemTabPage_DragDrop(object sender, DragEventArgs e) { 340 340 if (e.Effect != DragDropEffects.None) { 341 I DataAnalysisProblem problem = e.Data.GetData("Value") as IDataAnalysisProblem;342 if ((e.Effect & DragDropEffects.Copy) == DragDropEffects.Copy) problem = (I DataAnalysisProblem)problem.Clone();341 ISingleObjectiveDataAnalysisProblem problem = e.Data.GetData("Value") as ISingleObjectiveDataAnalysisProblem; 342 if ((e.Effect & DragDropEffects.Copy) == DragDropEffects.Copy) problem = (ISingleObjectiveDataAnalysisProblem)problem.Clone(); 343 343 Content.Problem = problem; 344 344 }
Note: See TracChangeset
for help on using the changeset viewer.