diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-12-17 16:43:40 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-12-17 16:43:40 +0200 |
| commit | ae1cfd30f1efbd385eac04b3d02fa1ed161058a3 (patch) | |
| tree | 5b77d7484e80491b06f1b726a57a61c782b5569e /Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/DefaultNotificationProvider.cs | |
| parent | 8270aa37dee33cda98603a995de823df393f7294 (diff) | |
| download | Tango-ae1cfd30f1efbd385eac04b3d02fa1ed161058a3.tar.gz Tango-ae1cfd30f1efbd385eac04b3d02fa1ed161058a3.zip | |
Add AppButtons to PPC.
Implemented Stop & Start job app buttons!
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.cs | 31 |
1 files changed, 31 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 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; + /// <summary> + /// Gets the current app button. + /// </summary> + public AppButton CurrentAppButton + { + get { return _currentAppButton; } + private set { _currentAppButton = value; RaisePropertyChangedAuto(); } + } + /// <summary> /// Gets a value indicating whether a dialog is available. /// </summary> @@ -504,5 +514,26 @@ namespace Tango.PPC.UI.Notifications { TaskBarItems.Remove(taskBarItem); } + + /// <summary> + /// Pushes the app button. + /// </summary> + /// <param name="appButton">The app button.</param> + public void PushAppButton(AppButton appButton) + { + CurrentAppButton = appButton; + } + + /// <summary> + /// Pops the app button. + /// </summary> + /// <param name="appButton">The app button.</param> + public void PopAppButton(AppButton appButton) + { + if (CurrentAppButton == appButton) + { + CurrentAppButton = null; + } + } } } |
