public bool IsValid(CommandLineParameterWithValueCollection parameters)
 {
     if (parameters.Exists(p => String.Compare("P", p.GetName(), true) == 0))
     {
         string          paramFile = parameters.GetStringValue("P");
         FileParamReader reader    = new FileParamReader(paramFile);
         return(reader.GetAllSearchStrings().Count == File.ReadAllLines(paramFile).Length);
     }
     return(true);
 }
Ejemplo n.º 2
0
 public bool IsValid(CommandLineParameterWithValueCollection parameters)
 {
     return(parameters.Exists(p => String.Compare("P", p.GetName(), true) == 0) ||
            parameters.Exists(p => String.Compare("S", p.GetName(), true) == 0));
 }