[chore:] deleting address sets

This commit is contained in:
2026-04-27 17:39:08 +02:00
parent cc48c0ae2c
commit d9ee3e2fc9
2 changed files with 35 additions and 0 deletions
+27
View File
@@ -914,4 +914,31 @@ public partial class MainWindow : Window
MessageBox.Show(this, ex.StackTrace, "Fehler");
}
}
private async void MnIAdSetDelete_OnClick(object? sender, RoutedEventArgs e)
{
if (LstCustomerAdressSets.SelectedItems.Count > 0)
try
{
var result = await MessageBox.Show(this, "Wirklich löschen?", "Wirklich?", MessageBoxButton.YesNo);
if (result != null)
{
// var id = KasAddressList.GetIDByAddressSetListItem(LstCustomerAdressSets.SelectedItems[0]
// .ToString());
// var cus_id = Customer.GetIDByCustomerListItem(LstCustomers.SelectedItems[0].ToString());
// foreach (var set in Settings._instance.addressSets.addresses)
// if (set.ID == id)
// {
// set.Name = result;
// Settings.Save();
// RefreshAddressSetListItems(cus_id);
// break;
// }
}
}
catch (Exception ex)
{
MessageBox.Show(this, ex.StackTrace, "Fehler");
}
}
}