private static void findAndAddItemsFromMatch(FindFilesXML.Project data, Project proj, string basePath)
 {
     foreach (var folder in data.folders)
     {
         var fullPath = Path.Combine(basePath, folder);
         foreach (var match in data.matches)
         {
             var allFiles = Directory.GetFiles(fullPath, match, SearchOption.AllDirectories);
             foreach (var file in allFiles)
             {
                 string fullName = Path.GetFullPath(file);
                 proj.ProjectItems.AddFromFile(fullName);
             }
         }
     }
 }
 private void refreshProject(FindFilesXML.Project data, Project proj, string basePath)
 {
     removeItemsThatDontExist(proj);
     findAndAddItemsFromMatch(data, proj, basePath);
     proj.Save();
 }