示例#1
0
 private bool FindNumber(PrintIssue issue, string filename)
 {
     foreach (RegexValues rv in _numberRegexList.Values)
     {
         //Match match = rv.Match_old(filename);
         MatchValues matchValues = rv.Match(filename);
         //while (match.Success)
         while (matchValues.Success)
         {
             //if (issue.MatchSetValues(rv, v => PrintIssue.IsNumberValid(v)))
             if (issue.MatchSetValues(matchValues, v => PrintIssue.IsNumberValid(v)))
             {
                 if (issue.Control())
                 {
                     return(true);
                 }
             }
             //match = rv.Next_old();
             matchValues = matchValues.Next();
         }
     }
     return(false);
 }