From ae1cfd30f1efbd385eac04b3d02fa1ed161058a3 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Mon, 17 Dec 2018 16:43:40 +0200 Subject: Add AppButtons to PPC. Implemented Stop & Start job app buttons! --- .../Notifications/DefaultNotificationProvider.cs | 31 ++++++++++++++++++++++ 1 file changed, 31 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 e7f51aeb6..9cd34e67c 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/DefaultNotificationProvider.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/DefaultNotificationProvider.cs @@ -107,6 +107,16 @@ namespace Tango.PPC.UI.Notifications } } + private AppButton _currentAppButton; + /// + /// Gets the current app button. + /// + public AppButton CurrentAppButton + { + get { return _currentAppButton; } + private set { _currentAppButton = value; RaisePropertyChangedAuto(); } + } + /// /// Gets a value indicating whether a dialog is available. /// @@ -504,5 +514,26 @@ namespace Tango.PPC.UI.Notifications { TaskBarItems.Remove(taskBarItem); } + + /// + /// Pushes the app button. + /// + /// The app button. + public void PushAppButton(AppButton appButton) + { + CurrentAppButton = appButton; + } + + /// + /// Pops the app button. + /// + /// The app button. + public void PopAppButton(AppButton appButton) + { + if (CurrentAppButton == appButton) + { + CurrentAppButton = null; + } + } } } -- cgit v1.3.1