Esempio n. 1
0
 public void RefreshPath()
 {
     staticTimer.start("Total");
     if (System.IO.Directory.Exists(reportsPath))
     {
         reader = new ReportReader(reportsPath);
         if (reader.UnprocessedReports.Count != 0)
         {
             pathFeedback = $"Some report folders were names incorrectly ({reader.UnprocessedReports[0].GetReportDirectory()})";
         }
         else
         {
             pathFeedback = "";
         }
         NotifyOfPropertyChange(() => pathFeedback);
         actions.Clear();
         foreach (string action in reader.GetActionList())
         {
             actions.Add(action);
         }
         NotifyOfPropertyChange(() => actions);
         NotifyOfPropertyChange(() => reportsPath);
     }
     staticTimer.stop("Total");
     staticTimer.log("Total");
 }