Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/06/10 21:38:31 (14 years ago)
Author:
mkommend
Message:

Adapted CrossValidation to use ISingleObjectiveDataAnalysisProblem (ticket #1199).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Classification/HeuristicLab.Algorithms.DataAnalysis.Views/3.3/CrossValidationView.cs

    r4561 r4563  
    192192
    193193    private void workersNumericUpDown_Validated(object sender, EventArgs e) {
    194       if (foldsNumericUpDown.Text == string.Empty)
     194      if (workersNumericUpDown.Text == string.Empty)
    195195        workersNumericUpDown.Text = workersNumericUpDown.Value.ToString();
    196196    }
     
    261261        problemTypeSelectorDialog.Caption = "Select Problem";
    262262        problemTypeSelectorDialog.TypeSelector.Caption = "Available Problems";
    263         problemTypeSelectorDialog.TypeSelector.Configure(typeof(IDataAnalysisProblem), false, true);
     263        problemTypeSelectorDialog.TypeSelector.Configure(Content.ProblemType, false, true);
    264264      }
    265265      if (problemTypeSelectorDialog.ShowDialog(this) == DialogResult.OK) {
    266266        try {
    267           Content.Problem = (IDataAnalysisProblem)problemTypeSelectorDialog.TypeSelector.CreateInstanceOfSelectedType();
     267          Content.Problem = (ISingleObjectiveDataAnalysisProblem)problemTypeSelectorDialog.TypeSelector.CreateInstanceOfSelectedType();
    268268        }
    269269        catch (Exception ex) {
     
    282282          try {
    283283            if (error != null) throw error;
    284             IDataAnalysisProblem problem = content as IDataAnalysisProblem;
     284            ISingleObjectiveDataAnalysisProblem problem = content as ISingleObjectiveDataAnalysisProblem;
    285285            if (problem == null && (Content.Algorithm.ProblemType.IsAssignableFrom(content.GetType())))
    286286              Invoke(new Action(() =>
     
    339339    private void algorithmProblemTabPage_DragDrop(object sender, DragEventArgs e) {
    340340      if (e.Effect != DragDropEffects.None) {
    341         IDataAnalysisProblem problem = e.Data.GetData("Value") as IDataAnalysisProblem;
    342         if ((e.Effect & DragDropEffects.Copy) == DragDropEffects.Copy) problem = (IDataAnalysisProblem)problem.Clone();
     341        ISingleObjectiveDataAnalysisProblem problem = e.Data.GetData("Value") as ISingleObjectiveDataAnalysisProblem;
     342        if ((e.Effect & DragDropEffects.Copy) == DragDropEffects.Copy) problem = (ISingleObjectiveDataAnalysisProblem)problem.Clone();
    343343        Content.Problem = problem;
    344344      }
Note: See TracChangeset for help on using the changeset viewer.