blob: 5b2cd4d4c95140a6fb05698a2d1868007a288db2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
using RhSolutions.Models;
namespace RhSolutions.Controllers
{
internal class ConvertTool : ToolBase
{
private SourcePriceList Current { get; set; }
public ConvertTool()
{
Current = new SourcePriceList(ExcelApp.ActiveWorkbook);
}
public override void FillTarget()
{
using (ProgressBar = new ProgressBar("Заполняю строки...", Current.PositionAmount.Count))
using (ResultBar = new ResultBar())
{
foreach (var kvp in Current.PositionAmount)
{
FillPositionAmountToColumns(kvp, TargetFile.AmountCell.Column);
ProgressBar.Update();
}
FilterByAmount();
ResultBar.Update();
}
}
}
}
|