diff options
Diffstat (limited to 'Software/Visual_Studio/FSE/Tango.FSE.UI/ViewModels/LayoutViewVM.cs')
| -rw-r--r-- | Software/Visual_Studio/FSE/Tango.FSE.UI/ViewModels/LayoutViewVM.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Software/Visual_Studio/FSE/Tango.FSE.UI/ViewModels/LayoutViewVM.cs b/Software/Visual_Studio/FSE/Tango.FSE.UI/ViewModels/LayoutViewVM.cs index 158b740e3..701ff4b79 100644 --- a/Software/Visual_Studio/FSE/Tango.FSE.UI/ViewModels/LayoutViewVM.cs +++ b/Software/Visual_Studio/FSE/Tango.FSE.UI/ViewModels/LayoutViewVM.cs @@ -46,6 +46,8 @@ namespace Tango.FSE.UI.ViewModels public RelayCommand ToggleConnectionPaneCommand { get; set; } + public RelayCommand LogoutCommand { get; set; } + public LayoutViewVM() { ToggleConnectionPaneCommand = new RelayCommand(() => IsConnectionPaneOpened = !IsConnectionPaneOpened); @@ -54,6 +56,8 @@ namespace Tango.FSE.UI.ViewModels ConnectedMachinePaneVM = new ConnectedMachinePaneVM(); ConnectedMachinePaneVM.DisconnectedFromMachine += ConnectedMachinePaneVM_DisconnectedFromMachine; + + LogoutCommand = new RelayCommand(Logout); } private async void ConnectedMachinePaneVM_DisconnectedFromMachine(object sender, EventArgs e) @@ -101,5 +105,10 @@ namespace Tango.FSE.UI.ViewModels { Debug.WriteLine("Diagnostics Received..."); } + + private void Logout() + { + AuthenticationProvider.LogOut(); + } } } |
