From 61a68af94273563e1179b49062ac96b8a627a72a Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Thu, 14 Jun 2018 17:32:09 +0300 Subject: Working on PPC. --- .../PPC/Tango.PPC.UI/Modules/DefaultStudioModuleLoader.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Modules/DefaultStudioModuleLoader.cs') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Modules/DefaultStudioModuleLoader.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Modules/DefaultStudioModuleLoader.cs index bb68f05cd..78ebd8ded 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Modules/DefaultStudioModuleLoader.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Modules/DefaultStudioModuleLoader.cs @@ -13,6 +13,7 @@ using Tango.PPC.Common.Authentication; using Tango.PPC.Common.Modules; using Tango.PPC.Common; using Tango.PPC.Jobs; +using System.Windows.Data; namespace Tango.PPC.UI.Modules { @@ -23,6 +24,7 @@ namespace Tango.PPC.UI.Modules /// public class DefaultPPCModuleLoader : ExtendedObject, IPPCModuleLoader { + private static object _syncObject = new object(); private IAuthenticationProvider _authenticationProvider; private bool _loaded; @@ -40,6 +42,9 @@ namespace Tango.PPC.UI.Modules _authenticationProvider = authenticationProvider; AllModules = new ObservableCollection(); UserModules = new ObservableCollection(); + + BindingOperations.EnableCollectionSynchronization(UserModules, _syncObject); + _authenticationProvider.CurrentUserChanged += _authenticationProvider_CurrentUserChanged; } -- cgit v1.3.1