[chore:] mini-cleanup
This commit is contained in:
+10
-3
@@ -472,7 +472,15 @@ public partial class MainWindow : Window
|
||||
|
||||
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)
|
||||
{
|
||||
(obj as Control).IsEnabled = enable;
|
||||
@@ -1355,8 +1363,7 @@ public partial class MainWindow : Window
|
||||
{
|
||||
BtnCombineAddressSetSortUp.IsEnabled = false;
|
||||
BtnCombineAddressSetSortDown.IsEnabled = false;
|
||||
}
|
||||
else
|
||||
} else
|
||||
{
|
||||
BtnCombineAddressSetSortDown.IsEnabled = true;
|
||||
BtnCombineAddressSetSortUp.IsEnabled = true;
|
||||
|
||||
Reference in New Issue
Block a user