Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/28/16 16:59:48 (8 years ago)
Author:
pfleck
Message:

#2698 Fixed wrongly formated variable-entries in checked item list.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.DataPreprocessing.Views/3.4/PreprocessingCheckedVariablesView.cs

    r14418 r14425  
    5858        IList<string> inputs = Content.PreprocessingData.InputVariables;
    5959        if (Content.PreprocessingData.TargetVariable != null)
    60           inputs = inputs.Union(new[] {Content.PreprocessingData.TargetVariable}).ToList();
     60          inputs = inputs.Union(new[] { Content.PreprocessingData.TargetVariable }).ToList();
    6161        Content.VariableItemList = Content.CreateVariableItemList(inputs);
    6262      } else {
     
    7070      var inputAndTarget = Content.PreprocessingData.InputVariables.Union(target != null ? new[] { target } : new string[] { });
    7171      foreach (var col in Content.PreprocessingData.GetDoubleVariableNames().Except(inputAndTarget)) {
    72         var listViewItem = checkedItemList.ItemsListView.FindItemWithText(col);
     72        var listViewItem = checkedItemList.ItemsListView.FindItemWithText(col, false, 0, false);
    7373        listViewItem.ForeColor = Color.LightGray;
    7474      }
     
    109109      Content.VariableItemList.Add(new StringValue(name));
    110110      if (!Content.PreprocessingData.InputVariables.Contains(name) && Content.PreprocessingData.TargetVariable != name) {
    111         var listViewItem = checkedItemList.ItemsListView.FindItemWithText(name);
     111        var listViewItem = checkedItemList.ItemsListView.FindItemWithText(name, false, 0, false);
    112112        listViewItem.ForeColor = Color.LightGray;
    113113      }
Note: See TracChangeset for help on using the changeset viewer.