From 933ef0a45e3b8e14948123251c071a6943872bb7 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Mon, 13 Aug 2018 18:43:15 +0300 Subject: Logs and comments for PPC Jobs Module ! --- .../PPC/Tango.PPC.UI/Notifications/DefaultNotificationProvider.cs | 8 ++++++++ 1 file changed, 8 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 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 /// private Task ShowMessageBox(MessageBoxVM vm) { + LogManager.Log($"Displaying MessagBox '{vm.Message}'."); + TaskCompletionSource source = new TaskCompletionSource(); vm.Accepted += () => { OnMessageBoxClosed(); source.SetResult(true); }; @@ -195,6 +197,8 @@ namespace Tango.PPC.UI.Notifications /// private void OnMessageBoxClosed() { + LogManager.Log("MessageBox closed."); + CurrentMessageBox = null; if (_pendingMessageBoxes.Count > 0) @@ -214,6 +218,7 @@ namespace Tango.PPC.UI.Notifications /// 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 /// The item. 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 /// 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 /// The application bar item. public void PopAppBarItem(AppBarItem appBarItem) { + LogManager.Log($"Popping out AppBarItem '{appBarItem.GetType().Name}'."); CurrentAppBarItem = null; } } -- cgit v1.3.1