Kategorie

This commit is contained in:
Meik
2025-11-11 23:59:33 +01:00
parent 5292a2cb0c
commit 845dd1810a
3 changed files with 51 additions and 12 deletions

View File

@@ -229,10 +229,27 @@ namespace FasdDesktopUi.Basics.UserControls
private static void OnSelectedCategoryChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
// Reserved for future use when additional reactions are required.
if (d is CloseCaseDialogWithTicket instance)
instance.LogSelectedCategoryChanged(e.NewValue as HierarchicalSelectionItem);
}
#endregion
#endregion
private void LogSelectedCategoryChanged(HierarchicalSelectionItem category)
{
try
{
var fullPath = category == null
? "<null>"
: string.IsNullOrWhiteSpace(category.FullPath) ? category.DisplayName : category.FullPath;
var id = category == null || string.IsNullOrWhiteSpace(category.Id) ? "<null>" : category.Id;
LogEntry($"[CloseCaseDialog] SelectedCategory updated -> {fullPath} (Id={id})");
}
catch (Exception ex)
{
LogException(ex);
}
}
public bool ShowServiceHasBeenChangedWarning
{