namespace RhSolutions.Tools; internal class GuessTool : ReaderWriterTool, ITool { public void Execute() { Application app = RhSolutionsAddIn.Excel.Application; Worksheet worksheet = app.ActiveWorkbook.ActiveSheet; _reader = _readerFactory.GetReader("Guess"); var products = _reader.ReadProducts(new[] { worksheet }); _writer = _writerFactory.GetWriter("NewPrice"); _writer.WriteProducts(products); } }