2024-11-09 22:59:46 +03:00
|
|
|
|
namespace RhSolutions.Tools;
|
2023-04-06 08:29:39 +03:00
|
|
|
|
|
2024-11-09 22:59:46 +03:00
|
|
|
|
internal class ExportTool : ReaderWriterTool, ITool
|
2023-04-06 08:29:39 +03:00
|
|
|
|
{
|
2024-11-09 22:59:46 +03:00
|
|
|
|
public void Execute()
|
|
|
|
|
{
|
|
|
|
|
Application app = RhSolutionsAddIn.Excel.Application;
|
|
|
|
|
_reader = _readerFactory.GetReader("Excel");
|
|
|
|
|
var products = _reader.ReadProducts(app.Selection);
|
|
|
|
|
_writer = _writerFactory.GetWriter("NewPrice");
|
|
|
|
|
_writer.WriteProducts(products);
|
|
|
|
|
}
|
|
|
|
|
}
|