aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/Modules/DefaultStudioModuleLoader.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Modules/DefaultStudioModuleLoader.cs')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/Modules/DefaultStudioModuleLoader.cs5
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;
}