Button ids simplify

This commit is contained in:
Sergey Chebotar 2022-02-12 16:57:29 +03:00
parent 3feab7cf5f
commit bbfa09d863

View File

@ -20,11 +20,11 @@ namespace RehauSku.Interface
<tabs> <tabs>
<tab id='rau' label='REHAU'> <tab id='rau' label='REHAU'>
<group id='priceList' label='Прайс-лист'> <group id='priceList' label='Прайс-лист'>
<button id='exportToPrice' getEnabled='GetExportEnabled' label='Экспорт в новый файл' size='normal' imageMso='PivotExportToExcel' onAction='OnToolPressed'/> <button id='export' getEnabled='GetExportEnabled' label='Экспорт в новый файл' size='normal' imageMso='PivotExportToExcel' onAction='OnToolPressed'/>
<button id='convertPrice' getEnabled='GetConvertEnabled' label='Актуализировать' size='normal' imageMso='FileUpdate' onAction='OnToolPressed'/> <button id='convert' getEnabled='GetConvertEnabled' label='Актуализировать' size='normal' imageMso='FileUpdate' onAction='OnToolPressed'/>
<menu id='conjoinMenu' label='Объединить' imageMso='Copy'> <menu id='conjoinMenu' label='Объединить' imageMso='Copy'>
<button id='mergeFiles' label='Сложить' onAction='OnToolPressed'/> <button id='merge' label='Сложить' onAction='OnToolPressed'/>
<button id='combineFiles' label='По колонкам' onAction='OnToolPressed'/> <button id='combine' label='По колонкам' onAction='OnToolPressed'/>
</menu> </menu>
</group> </group>
<group id='rausettings' label='Настройки'> <group id='rausettings' label='Настройки'>
@ -65,16 +65,16 @@ namespace RehauSku.Interface
AbstractTool tool; AbstractTool tool;
switch (control.Id) switch (control.Id)
{ {
case "exportToPrice": case "export":
tool = new ExportTool(); tool = new ExportTool();
break; break;
case "convertPrice": case "convert":
tool = new ConvertTool(); tool = new ConvertTool();
break; break;
case "mergeFiles": case "merge":
tool = new MergeTool(); tool = new MergeTool();
break; break;
case "combineFiles": case "combine":
tool = new CombineTool(); tool = new CombineTool();
break; break;
default: default: