aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/DefaultNotificationProvider.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2021-08-13 18:19:12 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2021-08-13 18:19:12 +0300
commitb7f1dc37a15a354ef7fae439bbcedf1f2133189c (patch)
treebe0bbb11345b36449e3b54cbcb2def9c096b17f3 /Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/DefaultNotificationProvider.cs
parente7819d9ffabb1efc272e61b4ef93a67d33dca57a (diff)
downloadTango-b7f1dc37a15a354ef7fae439bbcedf1f2133189c.tar.gz
Tango-b7f1dc37a15a354ef7fae439bbcedf1f2133189c.zip
Added logging for tracing PPC start/stop app buttons behavior.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/DefaultNotificationProvider.cs')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/DefaultNotificationProvider.cs15
1 files changed, 15 insertions, 0 deletions
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
/// <param name="appButton">The app button.</param>
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
/// <param name="appButton">The app button.</param>
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();