aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-11-27 16:34:43 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-11-27 16:34:43 +0200
commita90c38d0e29cc3332affbfb3c0500b008f451334 (patch)
treef084c21cc069504cacd9a134f0c3c8b4b1727416 /Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications
parente0167674d812f90896b982fa236dc2634eb79bcb (diff)
downloadTango-a90c38d0e29cc3332affbfb3c0500b008f451334.tar.gz
Tango-a90c38d0e29cc3332affbfb3c0500b008f451334.zip
Added event content and routing.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/DefaultNotificationProvider.cs11
1 files changed, 11 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 27df6ae1d..e7f51aeb6 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/DefaultNotificationProvider.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/DefaultNotificationProvider.cs
@@ -30,6 +30,16 @@ namespace Tango.PPC.UI.Notifications
private ConcurrentQueue<PendingNotification<MessageBoxVM, bool>> _pendingMessageBoxes;
private ConcurrentQueue<PendingNotification<DialogAndView, DialogViewVM>> _pendingDialogs;
+ private bool _notificationsVisible;
+ /// <summary>
+ /// Gets or sets a value indicating whether to allow notifications visibility.
+ /// </summary>
+ public bool NotificationsVisible
+ {
+ get { return _notificationsVisible; }
+ set { _notificationsVisible = value; RaisePropertyChangedAuto(); }
+ }
+
/// <summary>
/// Gets the collection of notification items.
/// </summary>
@@ -45,6 +55,7 @@ namespace Tango.PPC.UI.Notifications
/// </summary>
public DefaultNotificationProvider()
{
+ NotificationsVisible = true;
NotificationItems = new ObservableCollection<NotificationItem>();
TaskBarItems = new ObservableCollection<TaskBarItem>();
_pendingMessageBoxes = new ConcurrentQueue<PendingNotification<MessageBoxVM, bool>>();