コード例 #1
0
        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; }
            }
        }
コード例 #2
0
        protected virtual void Constraint_ActiveChanged(object sender, EventArgs e)
        {
            IRunCollectionConstraint constraint = (IRunCollectionConstraint)sender;

            this.UpdateFiltering(!constraint.Active);
        }