Example #1
0
 public void RaiseRunAnalysisRequestEvent(IEnumerable <FileDto> filesToIgnore)
 {
     RunAnalysisRequest.Should().NotBeNull();                                                    //ensure the controller is dialed in
     RunAnalysisRequest?.Invoke(this, new IgnoreFileArgs {
         IngoreFiles = filesToIgnore
     });                                                                                   //invoke the controller method
 }
Example #2
0
 public void RunAnalysis()
 {
     using (new WaitCursor())
     {
         var ignoreFileList = IgnoreFileDataGrid.ItemsSource?.OfType <FileDto>().Where(x => x.Ignore).ToList() ?? new List <FileDto>();
         RunAnalysisRequest?.Invoke(this, new IgnoreFileArgs {
             IngoreFiles = ignoreFileList
         });
     }
 }