diff options
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Modules/DefaultPPCModuleLoader.cs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/Modules/DefaultPPCModuleLoader.cs | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Modules/DefaultPPCModuleLoader.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Modules/DefaultPPCModuleLoader.cs index 14f9db927..668188901 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Modules/DefaultPPCModuleLoader.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Modules/DefaultPPCModuleLoader.cs @@ -16,6 +16,7 @@ using Tango.PPC.Jobs; using System.Windows.Data; using Tango.Core.DI; using Tango.Settings; +using System.Threading; namespace Tango.PPC.UI.Modules { @@ -89,18 +90,18 @@ namespace Tango.PPC.UI.Modules if (!_loaded) { - //Preloaded - if (settings.UseJobsModuleV2) - { - LogManager.Log(String.Format("Loading module '{0}'...", nameof(JobsV2Module))); - AllModules.Add(new JobsV2Module()); - } - else - { - //LogManager.Log(String.Format("Loading module '{0}'...", nameof(JobsModule))); - //AllModules.Add(new JobsModule()); - } - //Preloaded + ////Preloaded + //if (settings.UseJobsModuleV2) + //{ + // LogManager.Log(String.Format("Loading module '{0}'...", nameof(JobsV2Module))); + // AllModules.Add(new JobsV2Module()); + //} + //else + //{ + // //LogManager.Log(String.Format("Loading module '{0}'...", nameof(JobsModule))); + // //AllModules.Add(new JobsModule()); + //} + ////Preloaded AllModules.Clear(); string assemblyFolder = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location); @@ -162,6 +163,8 @@ namespace Tango.PPC.UI.Modules UserModules = AllModules.ToObservableCollection(); } + Thread.Sleep(1000); + ModulesLoaded?.Invoke(this, new EventArgs()); } |
