diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-11-27 16:34:43 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-11-27 16:34:43 +0200 |
| commit | a90c38d0e29cc3332affbfb3c0500b008f451334 (patch) | |
| tree | f084c21cc069504cacd9a134f0c3c8b4b1727416 /Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications | |
| parent | e0167674d812f90896b982fa236dc2634eb79bcb (diff) | |
| download | Tango-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.cs | 11 |
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>>(); |
