aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/DefaultNotificationProvider.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-08-13 18:43:15 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-08-13 18:43:15 +0300
commit933ef0a45e3b8e14948123251c071a6943872bb7 (patch)
tree5a81c1a6e2f0173e4f0ede44a594619074d6aece /Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/DefaultNotificationProvider.cs
parent998cc8d4d91a7f85389cd0918f127257576c2c13 (diff)
downloadTango-933ef0a45e3b8e14948123251c071a6943872bb7.tar.gz
Tango-933ef0a45e3b8e14948123251c071a6943872bb7.zip
Logs and comments for PPC Jobs Module !
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.cs8
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;
}
}