protected virtual void Constraint_ConstraintDataChanged(object sender, EventArgs e) { IRunCollectionConstraint constraint = (IRunCollectionConstraint)sender; if (constraint.Active) { var oldUpdateRuns = UpdateOfRunsInProgress; try { UpdateOfRunsInProgress = true; UpdateFiltering(true); } finally { UpdateOfRunsInProgress = oldUpdateRuns; } } }
protected virtual void Constraint_ActiveChanged(object sender, EventArgs e) { IRunCollectionConstraint constraint = (IRunCollectionConstraint)sender; this.UpdateFiltering(!constraint.Active); }