aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Modules/DefaultStudioModuleLoader.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-05-07 15:36:03 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-05-07 15:36:03 +0300
commitcdba3267d2a47b3bff8cf3ec0219223e36e234ff (patch)
tree2826e264827746eccbc1bef9d7f9bcfcb4cffb81 /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Modules/DefaultStudioModuleLoader.cs
parent453565753c012a087f402fc55eee528c132b7c8c (diff)
downloadTango-cdba3267d2a47b3bff8cf3ec0219223e36e234ff.tar.gz
Tango-cdba3267d2a47b3bff8cf3ec0219223e36e234ff.zip
Added machine studio modules order.
Implemented delayed GetInstance for TangoIOC.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Modules/DefaultStudioModuleLoader.cs')
-rw-r--r--Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Modules/DefaultStudioModuleLoader.cs2
1 files changed, 2 insertions, 0 deletions
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 4afddae69..26a789d0f 100644
--- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Modules/DefaultStudioModuleLoader.cs
+++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/Modules/DefaultStudioModuleLoader.cs
@@ -125,6 +125,8 @@ namespace Tango.MachineStudio.UI.Modules
_loaded = true;
}
+ AllModules = AllModules.OrderBy(x => x.GetType().GetCustomAttribute<StudioModuleAttribute>().Index).ToObservableCollection();
+
UserModules.Clear();
if (_authenticationProvider.CurrentUser != null)