private void displayWorker_DoWork(object sender, DoWorkEventArgs e)
 {
     try
     {
         ProjectStatusSnapshot newSnapshot = projectToMonitor.RetrieveSnapshot();
         snapshot = newSnapshot;
     }
     catch (Exception error)
     {
         currentError = error;
     }
 }
 /// <summary>
 /// Retrieves a snapshot of the current build status.
 /// </summary>
 /// <returns>The current build status of the project.</returns>
 public virtual ProjectStatusSnapshot RetrieveSnapshot()
 {
     return(projectMonitor.RetrieveSnapshot());
 }