From b7f1dc37a15a354ef7fae439bbcedf1f2133189c Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Fri, 13 Aug 2021 18:19:12 +0300 Subject: Added logging for tracing PPC start/stop app buttons behavior. --- .../Notifications/DefaultNotificationProvider.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/DefaultNotificationProvider.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/DefaultNotificationProvider.cs index e9de2538e..c2c069f45 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/DefaultNotificationProvider.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/DefaultNotificationProvider.cs @@ -19,6 +19,7 @@ using System.Reflection; using Tango.Core.DI; using System.ComponentModel; using System.Windows.Data; +using Tango.Logging; namespace Tango.PPC.UI.Notifications { @@ -563,6 +564,11 @@ namespace Tango.PPC.UI.Notifications /// The app button. public void PushAppButton(AppButton appButton) { + if (appButton != null) + { + LogManager.Log($"Pushing app button '{appButton.GetType().Name}'..."); + } + _appButtons.Insert(0, appButton); CurrentAppButton = appButton; } @@ -573,6 +579,15 @@ namespace Tango.PPC.UI.Notifications /// The app button. public void PopAppButton(AppButton appButton) { + if (appButton != null) + { + LogManager.Log($"Popping app button '{appButton.GetType().Name}'..."); + } + else + { + LogManager.Log("Popping app button 'null' ??", LogCategory.Warning); + } + _appButtons.RemoveAll(x => x == appButton); CurrentAppButton = _appButtons.FirstOrDefault(); -- cgit v1.3.1