コード例 #1
0
 /// <summary>
 /// Recursively walk through the solution/projects to check if srcML files need to be ADDED
 /// or CHANGED.
 /// TODO: may process files in parallel
 /// </summary>
 /// <param name="worker"></param>
 private void WalkSolutionTree(BackgroundWorker worker)
 {
     try {
         var allProjects = OpenSolution.getProjects();
         var enumerator  = allProjects.GetEnumerator();
         while (enumerator.MoveNext())
         {
             var project = enumerator.Current as Project;
             ProcessProject(project, worker, AllMonitoredFiles);
             if (worker != null && worker.CancellationPending)
             {
                 return;
             }
         }
     } catch (Exception e) {
         Console.WriteLine("Problem walk through the solution/projects. " + e.Message);
     }
 }