aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2023-06-20 09:59:36 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2023-06-20 10:01:02 +0300
commita9d7ac710e1f54adc5ae1d609132a6bc666fbf80 (patch)
tree28a438d1354b2c110b256422dfb2f0f9fcf6f43b
parenta73cc46449c76117d4d6fc72aac6e44c854bb411 (diff)
Implement CurrentPrice Writer service
-rw-r--r--RhSolutions.AddIn/Services/CurrentPriceWriter.cs19
1 files changed, 19 insertions, 0 deletions
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;
+ }
+}