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 }
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 }); } }