aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-12-17 16:43:40 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-12-17 16:43:40 +0200
commitae1cfd30f1efbd385eac04b3d02fa1ed161058a3 (patch)
tree5b77d7484e80491b06f1b726a57a61c782b5569e /Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications
parent8270aa37dee33cda98603a995de823df393f7294 (diff)
downloadTango-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')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/DefaultNotificationProvider.cs31
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;
+ }
+ }
}
}