Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/21/10 18:19:39 (14 years ago)
Author:
mkommend
Message:

Improved performance of all RunCollectionViews (ticket #1284).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization/3.3/RunCollection.cs

    r4722 r4883  
    285285    #endregion
    286286
     287    #region
     288    public event EventHandler<EventArgs<bool>> UpdateOfRunsInProgress;
     289    public void OnUpdateOfRunsInProgress(bool inProgress) {
     290      var handler = UpdateOfRunsInProgress;
     291      if (handler != null) handler(this, new EventArgs<bool>(inProgress));
     292    }
     293    #endregion
     294
    287295    #region filtering
    288296    private void UpdateFiltering(bool reset) {
     297      OnUpdateOfRunsInProgress(true);
    289298      if (reset)
    290299        list.ForEach(r => r.Visible = true);
    291300      foreach (IRunCollectionConstraint constraint in this.constraints)
    292301        constraint.Check();
     302      OnUpdateOfRunsInProgress(false);
    293303    }
    294304
Note: See TracChangeset for help on using the changeset viewer.