aboutsummaryrefslogtreecommitdiff
path: root/Source/Ribbon
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2021-12-24 17:42:20 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2021-12-24 17:42:20 +0300
commit20cfbfcca3a779c04aecdca5e4b465651e2be42a (patch)
tree5d9c814fd023395d894ce36a9040cf7f7330198c /Source/Ribbon
parent24024b5729c1c44bb01cb29813868743d1753e31 (diff)
New release
Diffstat (limited to 'Source/Ribbon')
-rw-r--r--Source/Ribbon/RibbonController.cs14
1 files changed, 6 insertions, 8 deletions
diff --git a/Source/Ribbon/RibbonController.cs b/Source/Ribbon/RibbonController.cs
index 0090761..df6f327 100644
--- a/Source/Ribbon/RibbonController.cs
+++ b/Source/Ribbon/RibbonController.cs
@@ -17,11 +17,11 @@ namespace RehauSku.Ribbon
<tabs>
<tab id='rau' label='REHAU'>
<group id='priceList' label='Прайс-лист'>
- <button id='exportToPrice' label='Экспорт' size='large' imageMso='PivotExportToExcel' onAction='OnExportPressed'/>
- <button id='mergeFiles' label='Объединить' size='large' imageMso='Copy' onAction='OnMergePressed'/>
+ <button id='exportToPrice' label='Экспорт в новый файл' size='normal' imageMso='PivotExportToExcel' onAction='OnExportPressed'/>
+ <button id='mergeFiles' label='Объединить' size='normal' imageMso='Copy' onAction='OnMergePressed'/>
</group>
<group id='rausettings' label='Настройки'>
- <button id='set' label='Настройки' size='large' imageMso='CurrentViewSettings' onAction='OnSettingsPressed'/>
+ <button id='setPriceList' label='Файл прайс-листа' size='normal' imageMso='CurrentViewSettings' onAction='OnSetPricePressed'/>
</group>
</tab>
</tabs>
@@ -60,12 +60,10 @@ namespace RehauSku.Ribbon
}
}
- public void OnSettingsPressed(IRibbonControl control)
+ public void OnSetPricePressed(IRibbonControl control)
{
- Form settingsForm = new SettingsForm();
-
- settingsForm.Show();
-
+ string path = Dialog.GetFilePath();
+ RegistryUtil.PriceListPath = path;
}
}
}