static void Main(string[] args) { DirectoryInfo dinfo = new DirectoryInfo(args[0]); PipelinedAnalysis.CleanPipelinedAnalysisResults(dinfo); Thread worker = PipelinedAnalysis.PerformAnalysis(dinfo, delegate() { Console.WriteLine("Starting Analysis on \"" + dinfo.FullName + "\""); }, delegate() { Console.WriteLine("Finished Analysis"); }, delegate(Exception ex) { throw ex; }); worker.Join(); }
private void cleanPipelinedAnalysisResultsToolStripMenuItem_Click(object sender, EventArgs e) { var folderBrowser = new FolderBrowserDialog(); folderBrowser.SelectedPath = Profiles.GetInstance().LastPipelineAnalysisPath; DialogResult result = folderBrowser.ShowDialog(); if (result == DialogResult.Cancel) { return; } var dinfo = new DirectoryInfo(folderBrowser.SelectedPath); // Save the last selected path. Profiles.GetInstance().LastPipelineAnalysisPath = folderBrowser.SelectedPath; Profiles.Save(); PipelinedAnalysis.CleanPipelinedAnalysisResults(dinfo); }