[chore:] mini-cleanup

This commit is contained in:
2026-08-02 16:42:49 +02:00
parent 81ee99ef27
commit b3e7b64baf
+10 -3
View File
@@ -472,7 +472,15 @@ public partial class MainWindow : Window
private void SetSettingsCustomerEnabledState(bool enable = true) private void SetSettingsCustomerEnabledState(bool enable = true)
{ {
List<Object> nboom = new() { BtnSettingsImportCustomerAddressPatch, GrdCSVDividerButtonsAndTb, TbSettingsCustomerDescription, TbSettingsCustomerName, BtnDeleteCustomer, TbSettingsCustomerSenderAddress}; List<Object> nboom = new()
{
BtnSettingsImportCustomerAddressPatch,
GrdCSVDividerButtonsAndTb,
TbSettingsCustomerDescription,
TbSettingsCustomerName,
BtnDeleteCustomer,
TbSettingsCustomerSenderAddress
};
foreach (var obj in nboom) foreach (var obj in nboom)
{ {
(obj as Control).IsEnabled = enable; (obj as Control).IsEnabled = enable;
@@ -1355,8 +1363,7 @@ public partial class MainWindow : Window
{ {
BtnCombineAddressSetSortUp.IsEnabled = false; BtnCombineAddressSetSortUp.IsEnabled = false;
BtnCombineAddressSetSortDown.IsEnabled = false; BtnCombineAddressSetSortDown.IsEnabled = false;
} } else
else
{ {
BtnCombineAddressSetSortDown.IsEnabled = true; BtnCombineAddressSetSortDown.IsEnabled = true;
BtnCombineAddressSetSortUp.IsEnabled = true; BtnCombineAddressSetSortUp.IsEnabled = true;