Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/19/15 12:02:40 (8 years ago)
Author:
mkommend
Message:

#2486: Merged r12983, r12986, r13252 and r13271 into stable.

Location:
stable
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.DataPreprocessing/3.4

  • stable/HeuristicLab.DataPreprocessing/3.4/Implementations/DataGridContent.cs

    r12718 r13289  
    4141    public IFilterLogic FilterLogic { get; private set; }
    4242
    43     private IEnumerable<string> rowNames;
    44 
    4543    public int Rows {
    4644      get {
     
    7270    public IEnumerable<string> RowNames {
    7371      get {
    74         return rowNames;
     72        return Enumerable.Range(1, Rows).Select(n => n.ToString());
    7573      }
    7674      set {
    77         //not supported
     75        throw new NotSupportedException();
    7876      }
    7977    }
     
    8482      }
    8583      set {
    86         //not supported
     84        throw new NotSupportedException();
    8785      }
    8886    }
     
    103101      FilterLogic = theFilterLogic;
    104102      PreProcessingData = preProcessingData;
    105       createRowNames();
    106103    }
    107104
     
    116113    public void DeleteRows(IEnumerable<int> rows) {
    117114      PreProcessingData.DeleteRowsWithIndices(rows);
    118       createRowNames();
    119115    }
    120116
     
    133129    public bool SetValue(string value, int rowIndex, int columnIndex) {
    134130      return PreProcessingData.SetValue(value, columnIndex, rowIndex);
    135     }
    136 
    137     private void createRowNames() {
    138       rowNames = Enumerable.Range(1, Rows).Select(n => n.ToString());
    139131    }
    140132
Note: See TracChangeset for help on using the changeset viewer.