public void Generate(string searchQuery,
                             IEnumerable<string> inputPaths,
                             IEnumerable<MatchingFile> searchResults)
        {
            SummaryOptionsForm form = new SummaryOptionsForm();

            if (form.ShowDialog() == DialogResult.OK)
            {
                ReportOptions options = form.Options;
                string fileExtension = Path.GetExtension(options.outputFilePath);
                IDocumentBuilder builder = DocumentBuilderFactory.Create(fileExtension);

                Generate(builder, options, searchQuery, inputPaths, searchResults);
            }
        }
Exemple #2
0
        public void Generate(string searchQuery,
                             IEnumerable <string> inputPaths,
                             IEnumerable <MatchingFile> searchResults)
        {
            SummaryOptionsForm form = new SummaryOptionsForm();

            if (form.ShowDialog() == DialogResult.OK)
            {
                ReportOptions    options       = form.Options;
                string           fileExtension = Path.GetExtension(options.outputFilePath);
                IDocumentBuilder builder       = DocumentBuilderFactory.Create(fileExtension);

                Generate(builder, options, searchQuery, inputPaths, searchResults);
            }
        }