예제 #1
0
 private void OnIgnoreViolation(RuleViolationIgnoreCommandEventArgs e)
 {
     if (IgnoreViolation != null)
     {
         IgnoreViolation(this, e);
     }
 }
예제 #2
0
        private void _view_IgnoreViolation(object sender, RuleViolationIgnoreCommandEventArgs e)
        {
            switch (e.IgnoreType)
            {
            case RuleViolationIgnoreType.File:
                _project.IgnoredFile(e.Violation.File);
                foreach (RuleViolation aViolation in new List <RuleViolation>(_violationList))
                {
                    if (aViolation.File.Equals(e.Violation.File))
                    {
                        _violationList.Remove(aViolation);
                    }
                }

                break;

            default:
                throw new CalidusException("Unrecognized ignore type " + e.IgnoreType);
            }
        }