diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-14 17:32:09 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-14 17:32:09 +0300 |
| commit | 61a68af94273563e1179b49062ac96b8a627a72a (patch) | |
| tree | b435c82b2046ece012b3555afa77c660f0a2b0ca /Software/Visual_Studio/PPC/Tango.PPC.UI/Modules | |
| parent | 580cb401e8b31501cb3fbee1b9f59a67ad636633 (diff) | |
| download | Tango-61a68af94273563e1179b49062ac96b8a627a72a.tar.gz Tango-61a68af94273563e1179b49062ac96b8a627a72a.zip | |
Working on PPC.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Modules')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/Modules/DefaultStudioModuleLoader.cs | 5 |
1 files changed, 5 insertions, 0 deletions
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 /// <seealso cref="Tango.PPC.Common.Modules.IPPCModuleLoader" /> 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<IPPCModule>(); UserModules = new ObservableCollection<IPPCModule>(); + + BindingOperations.EnableCollectionSynchronization(UserModules, _syncObject); + _authenticationProvider.CurrentUserChanged += _authenticationProvider_CurrentUserChanged; } |
