예제 #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);
 }
예제 #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;
 }