14 lines
421 B
C#
14 lines
421 B
C#
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);
|
|
}
|
|
} |