Changeset 15122


Ignore:
Timestamp:
07/05/17 16:27:50 (3 weeks ago)
Author:
mkommend
Message:

#2800: Used updateOfRunsInProgress to speed up hiding of runs from the bubble chart.

File:
1 edited

Legend:

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

    r14889 r15122  
    746746    }
    747747    private void hideRunsToolStripMenuItem_Click(object sender, EventArgs e) {
    748       //ToList is necessary to prevent lazy evaluation
    749       HideRuns(selectedRuns.ToList());
     748      HideRuns(selectedRuns);
    750749      //could not use ClearSelectedRuns as the runs are not visible anymore
    751750      selectedRuns.Clear();
    752751    }
    753752    private void hideRunsButton_Click(object sender, EventArgs e) {
    754       //ToList is necessary to prevent lazy evaluation
    755       HideRuns(selectedRuns.ToList());
     753      HideRuns(selectedRuns);
    756754      //could not use ClearSelectedRuns as the runs are not visible anymore
    757755      selectedRuns.Clear();
     
    759757
    760758    private void HideRuns(IEnumerable<IRun> runs) {
     759      Content.UpdateOfRunsInProgress = true;
    761760      visibilityConstraint.Active = false;
    762761      if (!Content.Constraints.Contains(visibilityConstraint)) Content.Constraints.Add(visibilityConstraint);
     
    765764      }
    766765      visibilityConstraint.Active = true;
     766      Content.UpdateOfRunsInProgress = false;
    767767    }
    768768
Note: See TracChangeset for help on using the changeset viewer.