From 79eb19cbd10785a7dbc972bc0b26817932237419 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Wed, 10 Oct 2018 16:55:44 +0300 Subject: Sign-out works ! Fixed issue where color conversion was busy while not in research module but research module in job view. Added new RealTimeGraphX ! --- .../MachineStudio/Tango.MachineStudio.UI/App.config | 4 ++++ .../Modules/DefaultStudioModuleLoader.cs | 16 ++++++++-------- .../Tango.MachineStudio.UI/Tango.MachineStudio.UI.csproj | 2 +- .../Tango.MachineStudio.UI/ViewModels/MainViewVM.cs | 1 + 4 files changed, 14 insertions(+), 9 deletions(-) (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI') diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.config b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.config index 0395c36bb..6f1fcffc2 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.config +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.config @@ -115,6 +115,10 @@ + + + + \ No newline at end of file diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Modules/DefaultStudioModuleLoader.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Modules/DefaultStudioModuleLoader.cs index 13c3d6779..0def3c943 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Modules/DefaultStudioModuleLoader.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Modules/DefaultStudioModuleLoader.cs @@ -32,8 +32,8 @@ namespace Tango.MachineStudio.UI.Modules public DefaultStudioModuleLoader(IAuthenticationProvider authenticationProvider) { _authenticationProvider = authenticationProvider; - AllModules = new ObservableCollection(); - UserModules = new ObservableCollection(); + AllModules = new SynchronizedObservableCollection(); + UserModules = new SynchronizedObservableCollection(); _authenticationProvider.CurrentUserChanged += _authenticationProvider_CurrentUserChanged; } @@ -47,21 +47,21 @@ namespace Tango.MachineStudio.UI.Modules LoadModules(); } - private ObservableCollection _allModules; + private SynchronizedObservableCollection _allModules; /// /// Gets all loaded modules. /// - public ObservableCollection AllModules + public SynchronizedObservableCollection AllModules { get { return _allModules; } private set { _allModules = value; RaisePropertyChangedAuto(); } } - private ObservableCollection _userModules; + private SynchronizedObservableCollection _userModules; /// /// Gets all the user permitted modules. /// - public ObservableCollection UserModules + public SynchronizedObservableCollection UserModules { get { return _userModules; } private set { _userModules = value; RaisePropertyChangedAuto(); } @@ -121,13 +121,13 @@ namespace Tango.MachineStudio.UI.Modules _loaded = true; } - AllModules = AllModules.OrderBy(x => x.GetType().GetCustomAttribute().Index).ToObservableCollection(); + AllModules = AllModules.OrderBy(x => x.GetType().GetCustomAttribute().Index).ToSynchronizedObservableCollection(); UserModules.Clear(); if (_authenticationProvider.CurrentUser != null) { - UserModules = AllModules.Where(x => _authenticationProvider.CurrentUser.HasPermission(x.Permission)).ToObservableCollection(); + UserModules = AllModules.Where(x => _authenticationProvider.CurrentUser.HasPermission(x.Permission)).ToSynchronizedObservableCollection(); } ModulesLoaded?.Invoke(this, new EventArgs()); diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Tango.MachineStudio.UI.csproj b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Tango.MachineStudio.UI.csproj index 1803e82c5..003a7f194 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Tango.MachineStudio.UI.csproj +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Tango.MachineStudio.UI.csproj @@ -8,7 +8,7 @@ WinExe Tango.MachineStudio.UI Tango.MachineStudio.UI - v4.6 + v4.6.1 512 {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 4 diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs index cbd58134d..b3d896d53 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs @@ -412,6 +412,7 @@ namespace Tango.MachineStudio.UI.ViewModels private void SignOut() { _authenticationProvider.Logout(); + Home(); _navigation.NavigateTo(NavigationView.LoginView); CurrentModule = null; IsMenuOpened = false; -- cgit v1.3.1