diff options
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.cs | 8 |
1 files changed, 8 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 fc5ab2ba2..f03d9accd 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/DefaultNotificationProvider.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/DefaultNotificationProvider.cs @@ -173,6 +173,8 @@ namespace Tango.PPC.UI.Notifications /// <returns></returns> private Task<bool> ShowMessageBox(MessageBoxVM vm) { + LogManager.Log($"Displaying MessagBox '{vm.Message}'."); + TaskCompletionSource<bool> source = new TaskCompletionSource<bool>(); vm.Accepted += () => { OnMessageBoxClosed(); source.SetResult(true); }; @@ -195,6 +197,8 @@ namespace Tango.PPC.UI.Notifications /// </summary> private void OnMessageBoxClosed() { + LogManager.Log("MessageBox closed."); + CurrentMessageBox = null; if (_pendingMessageBoxes.Count > 0) @@ -214,6 +218,7 @@ namespace Tango.PPC.UI.Notifications /// <returns></returns> public NotificationItem PushNotification(NotificationItem item) { + LogManager.Log($"Pushing NotificationItem '{item.GetType().Name}'."); item.RemoveAction = () => { PopNotification(item); }; NotificationItems.Insert(0, item); RaisePropertyChanged(nameof(HasNotificationItems)); @@ -236,6 +241,7 @@ namespace Tango.PPC.UI.Notifications /// <param name="item">The item.</param> public void PopNotification(NotificationItem item) { + LogManager.Log($"Popping out NotificationItem '{item.GetType().Name}'."); NotificationItems.Remove(item); RaisePropertyChanged(nameof(HasNotificationItems)); } @@ -410,6 +416,7 @@ namespace Tango.PPC.UI.Notifications /// <returns></returns> public AppBarItem PushAppBarItem(AppBarItem appBarItem) { + LogManager.Log($"Pushing AppBarItem '{appBarItem.GetType().Name}'."); CurrentAppBarItem = appBarItem; appBarItem.RemoveAction = () => PopAppBarItem(appBarItem); return appBarItem; @@ -431,6 +438,7 @@ namespace Tango.PPC.UI.Notifications /// <param name="appBarItem">The application bar item.</param> public void PopAppBarItem(AppBarItem appBarItem) { + LogManager.Log($"Popping out AppBarItem '{appBarItem.GetType().Name}'."); CurrentAppBarItem = null; } } |
