Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/11/09 23:25:59 (15 years ago)
Author:
gkronber
Message:

worked on presentation layer for CEDMA (brushing) (#419)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/CEDMA-Refactoring-Ticket419/HeuristicLab.CEDMA.Core/Results.cs

    r1108 r1109  
    3636
    3737namespace HeuristicLab.CEDMA.Core {
    38   public class Results {
     38  public class Results : ItemBase {
    3939    public static string[] CategoricalVariables {
    4040      get { return new string[] { "TargetVariable" }; }
     
    6363    }
    6464
    65     public IEnumerable<ResultsEntry> SelectRows() {
     65    private List<ResultsEntry> entries = null;
     66    public IEnumerable<ResultsEntry> GetEntries() {
     67      if (entries == null)
     68        Reload();
     69      return entries.AsEnumerable();
     70    }
     71
     72    internal void Reload() {
     73      entries = SelectRows().ToList();
     74      FireChanged();
     75    }
     76
     77    private IEnumerable<ResultsEntry> SelectRows() {
    6678      if (store == null) yield break;
    6779
Note: See TracChangeset for help on using the changeset viewer.