Implement fill sleeves tool
This commit is contained in:
parent
8c134644ba
commit
63a962f495
25
RhSolutions.AddIn/Tools/SleevesTool.cs
Normal file
25
RhSolutions.AddIn/Tools/SleevesTool.cs
Normal file
@ -0,0 +1,25 @@
|
||||
namespace RhSolutions.Tools;
|
||||
|
||||
internal class SleevesTool : Tool
|
||||
{
|
||||
public SleevesTool(IServiceProvider provider) : base(provider)
|
||||
{
|
||||
}
|
||||
|
||||
public override void Execute()
|
||||
{
|
||||
Application app = RhSolutionsAddIn.Excel.Application;
|
||||
_reader = _readerFactory.GetReader("Excel");
|
||||
_writer = _writerFactory.GetWriter("CurrentPrice");
|
||||
var products = new List<(string, Dictionary<Product, double>)>()
|
||||
{
|
||||
(string.Empty, new Dictionary<Product, double>()
|
||||
{
|
||||
[new Product("11600011001")] = 10,
|
||||
[new Product("11600021001")] = 10,
|
||||
[new Product("11600031001")] = 10
|
||||
})
|
||||
};
|
||||
_writer.WriteProducts(products);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user