Kategorie
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user