diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-02-25 17:53:18 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-02-25 17:53:18 +0200 |
| commit | 1128b73f79d5aa28de3bf9da2a6492281cc8446e (patch) | |
| tree | 2d7960151653b5bcec14cd424a885fd838d27784 /Software/Visual_Studio/FSE/Tango.FSE.UI/ViewModels/LayoutViewVM.cs | |
| parent | 0523d927f31acc3be070fa6281c3108aaefe65c2 (diff) | |
| download | Tango-1128b73f79d5aa28de3bf9da2a6492281cc8446e.tar.gz Tango-1128b73f79d5aa28de3bf9da2a6492281cc8446e.zip | |
Moved observablesStaticCollection init to auth provider.
Implemented Logout/Login.
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(); + } } } |
