From a9d7ac710e1f54adc5ae1d609132a6bc666fbf80 Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Tue, 20 Jun 2023 09:59:36 +0300 Subject: [PATCH] Implement CurrentPrice Writer service --- .../Services/CurrentPriceWriter.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 RhSolutions.AddIn/Services/CurrentPriceWriter.cs diff --git a/RhSolutions.AddIn/Services/CurrentPriceWriter.cs b/RhSolutions.AddIn/Services/CurrentPriceWriter.cs new file mode 100644 index 0000000..d1a1dd7 --- /dev/null +++ b/RhSolutions.AddIn/Services/CurrentPriceWriter.cs @@ -0,0 +1,19 @@ +#if !NET472 +using System.Runtime.Versioning; +using RhSolutions.Tools; +#endif + + +namespace RhSolutions.Services; + +public class CurrentPriceWriter : ExcelWriterBase, IWriter, IDisposable +{ + public CurrentPriceWriter(Application application, IAddInConfiguration configuration) + { + _application = application; + _resultBar = new(); + _headers = configuration.GetPriceListHeaders(); + _worksheet = _application.ActiveSheet; + _appendValues = false; + } +}