diff options
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LayoutViewVM.cs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LayoutViewVM.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LayoutViewVM.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LayoutViewVM.cs index 062ade9cf..268f42ce9 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LayoutViewVM.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LayoutViewVM.cs @@ -74,6 +74,11 @@ namespace Tango.PPC.UI.ViewModels public RelayCommand StopPrintingCommand { get; set; } /// <summary> + /// Gets or sets the sign-out command. + /// </summary> + public RelayCommand SignOutCommand { get; set; } + + /// <summary> /// Initializes a new instance of the <see cref="LayoutViewVM"/> class. /// </summary> public LayoutViewVM() @@ -84,6 +89,7 @@ namespace Tango.PPC.UI.ViewModels NotificationsAreaPressedCommand = new RelayCommand(OpenFirstNotificationOrDisplayAll); StopPrintingCommand = new RelayCommand(StopPrinting); + SignOutCommand = new RelayCommand(SignOut); } private void StopPrinting() @@ -162,6 +168,15 @@ namespace Tango.PPC.UI.ViewModels } /// <summary> + /// Represents an event that is raised when the sign-out operation is complete. + /// </summary> + private void SignOut() + { + AuthenticationProvider.LogOut(); + IsMenuOpened = false; + } + + /// <summary> /// Opens the first notification or display all. /// </summary> private void OpenFirstNotificationOrDisplayAll() |
