Ejemplo n.º 1
0
 private List <string> ConditionIs(List <string> fileList, string sDir, bool matchAny, BCondition c)
 {
     if (c.Element == "Extension")
     {
         fileList = CombineFileList(matchAny, fileList, GetExtensionIs(sDir, c.Parameter));
     }
     if (c.Element == "Name")
     {
         fileList = CombineFileList(matchAny, fileList, GetNameIs(sDir, c.Parameter));
     }
     return(fileList);
 }
Ejemplo n.º 2
0
 private List<string> ConditionIs(List<string> fileList, string sDir, bool matchAny, BCondition c)
 {
     if (c.Element == "Extension")
         fileList = CombineFileList(matchAny, fileList, GetExtensionIs(sDir, c.Parameter));
     if (c.Element == "Name")
         fileList = CombineFileList(matchAny, fileList, GetNameIs(sDir, c.Parameter));
     return fileList;
 }