Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/06/09 21:54:04 (15 years ago)
Author:
gkronber
Message:

Implemented filtering of result entries in bubble chart and table view. #691 (CEDMA result views should allow filtering of displayed results)

Location:
trunk/sources/HeuristicLab.CEDMA.Core/3.3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.CEDMA.Core/3.3/Results.cs

    r2137 r2139  
    117117          nStatements += resultsReturned;
    118118          int nModels = Math.Max(10, resultsReturned * 10 / 100);
     119          nModels = Math.Min(nModels, resultsReturned);
    119120          foreach (var modelBindings in targetVariableBindings.Take(nModels)) {
    120121            ResultsEntry entry = new ResultsEntry();
  • trunk/sources/HeuristicLab.CEDMA.Core/3.3/ResultsEntry.cs

    r2133 r2139  
    4242    }
    4343
     44    private bool visible = true;
     45    public bool Visible {
     46      get { return visible; }
     47      set { visible = value; }
     48    }
     49
    4450    private string uri;
    4551    public string Uri {
  • trunk/sources/HeuristicLab.CEDMA.Core/3.3/TableResultsView.cs

    r2047 r2139  
    4343      var entries = Results.GetEntries();
    4444      foreach (var entry in entries) {
    45         int rowIndex = dataGridView.Rows.Add();
    46         dataGridView.Rows[rowIndex].Tag = entry;
    47         foreach (string attrName in attributeNames) {
    48           dataGridView.Rows[rowIndex].Cells[attrName].Value = entry.Get(attrName);
     45        if (entry.Visible) {
     46          int rowIndex = dataGridView.Rows.Add();
     47          dataGridView.Rows[rowIndex].Tag = entry;
     48          foreach (string attrName in attributeNames) {
     49            dataGridView.Rows[rowIndex].Cells[attrName].Value = entry.Get(attrName);
     50          }
     51          if (entry.Selected) dataGridView.Rows[rowIndex].Selected = true;
    4952        }
    50         if (entry.Selected) dataGridView.Rows[rowIndex].Selected = true;
    5153      }
    5254      dataGridView.Update();
Note: See TracChangeset for help on using the changeset viewer.