From ca50e0c8fc88acd06d6e1932e9412464bff95edb Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Tue, 12 Jun 2018 19:04:09 +0300 Subject: Working on PPC modules and loading. --- .../Tango.PPC.Common/Modules/IPPCModuleLoader.cs | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 Software/Visual_Studio/PPC/Tango.PPC.Common/Modules/IPPCModuleLoader.cs (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/Modules/IPPCModuleLoader.cs') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Modules/IPPCModuleLoader.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Modules/IPPCModuleLoader.cs new file mode 100644 index 000000000..52527fb33 --- /dev/null +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Modules/IPPCModuleLoader.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.PPC.Common.Modules +{ + /// + /// Represents a PPC modules loading engine. + /// + public interface IPPCModuleLoader + { + /// + /// Occurs when the user has logged in and user modules are loaded. + /// + event EventHandler ModulesLoaded; + + /// + /// Gets all loaded modules. + /// + ObservableCollection AllModules { get; } + + /// + /// Gets all the user permitted modules. + /// + ObservableCollection UserModules { get; } + + /// + /// Gets the PPC module of type T if loaded. + /// + /// + /// + T GetPPCModule() where T : IPPCModule; + + /// + /// Loads all available PPC modules. + /// + void LoadModules(); + } +} -- cgit v1.3.1