aboutsummaryrefslogtreecommitdiff
path: root/src/Ribbon/RibbonController.cs
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2022-01-28 09:08:35 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2022-01-28 09:08:35 +0300
commit722de64dadd29744972ec5c5eca228f7a2e326e5 (patch)
treea4039c747ad7674355c1837250daa9376fd084af /src/Ribbon/RibbonController.cs
parent71fcd9ee866cb3b1a221dbd691d78ff4b26f23e4 (diff)
Add convert Tool
Diffstat (limited to 'src/Ribbon/RibbonController.cs')
-rw-r--r--src/Ribbon/RibbonController.cs12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/Ribbon/RibbonController.cs b/src/Ribbon/RibbonController.cs
index b00e23a..99f44df 100644
--- a/src/Ribbon/RibbonController.cs
+++ b/src/Ribbon/RibbonController.cs
@@ -20,13 +20,14 @@ namespace RehauSku.Ribbon
<tab id='rau' label='REHAU'>
<group id='priceList' label='Прайс-лист'>
<button id='exportToPrice' label='Экспорт в новый файл' size='normal' imageMso='PivotExportToExcel' onAction='OnExportPressed'/>
+ <button id='convertPrice' label='Обновить прайс-лист' size='normal' imageMso='FileUpdate' onAction='OnConvertPressed'/>
<menu id='conjoinMenu' label='Объединить' imageMso='Copy'>
<button id='mergeFiles' label='Сложить' onAction='OnMergePressed'/>
<button id='combineFiles' label='По колонкам' onAction='OnCombinePressed'/>
</menu>
</group>
<group id='rausettings' label='Настройки'>
- <button id='setPriceList' label='Файл прайс-листа' size='large' imageMso='CurrentViewSettings' onAction='OnSetPricePressed'/>
+ <button id='setPriceList' label='Указать путь к шаблону' size='large' imageMso='CurrentViewSettings' onAction='OnSetPricePressed'/>
</group>
</tab>
</tabs>
@@ -80,6 +81,15 @@ namespace RehauSku.Ribbon
}
}
+ public void OnConvertPressed(IRibbonControl control)
+ {
+ ConvertTool convertTool = new ConvertTool();
+
+ convertTool.GetCurrent();
+ convertTool.OpenNewPrice();
+ convertTool.FillTarget();
+ }
+
public void OnSetPricePressed(IRibbonControl control)
{
string path = Dialog.GetFilePath();