Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/08/15 15:59:11 (9 years ago)
Author:
abeham
Message:

#2270:

  • Fixed bug in RunCollectionChartAggregationView regarding null value
  • Fixed bug in RunCollectionTableView when runs were added during UpdateOfRunsInProgress
  • Added suppressUpdates to RunCollectionView and listening to UpdateOfRunsInProgress
  • Made sure that RunCollection would reset updateOfRunsInProgress to the same value as before when changing it in internal methods
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/RunCollectionViews/RunCollectionTableView.cs

    r12077 r12692  
    5353      base.OnContentChanged();
    5454      if (Content != null) {
    55         runToRowMapping = Enumerable.Range(0, Content.Count).ToArray();
    5655        UpdateRowAttributes();
    5756      }
     
    151150        suppressUpdates = Content.UpdateOfRunsInProgress;
    152151        if (!suppressUpdates) {
     152          UpdateData();
    153153          UpdateRowAttributes();
    154           UpdateData();
    155154        }
    156155      }
     
    179178    protected override void ClearSorting() {
    180179      base.ClearSorting();
    181       runToRowMapping = Enumerable.Range(0, Content.Count).ToArray();
    182180      UpdateRowAttributes();
    183181    }
     
    198196        i++;
    199197      }
    200       UpdateRowAttributes();
     198      UpdateRowAttributes(rebuild: false);
    201199      return newSortedIndex;
    202200    }
    203201
    204     private void UpdateRowAttributes() {
     202    private void UpdateRowAttributes(bool rebuild = true) {
     203      if (rebuild) runToRowMapping = Enumerable.Range(0, Content.Count).ToArray();
    205204      int runIndex = 0;
    206205      foreach (IRun run in Content) {
Note: See TracChangeset for help on using the changeset viewer.