diff --git a/NOCQ.userprefs b/NOCQ.userprefs index 8ada366..8a063db 100644 --- a/NOCQ.userprefs +++ b/NOCQ.userprefs @@ -1,10 +1,6 @@  - - - - - + diff --git a/src/NOCQ/Extensability/Catalog.cs b/src/NOCQ/Extensability/Catalog.cs new file mode 100644 index 0000000..f58656e --- /dev/null +++ b/src/NOCQ/Extensability/Catalog.cs @@ -0,0 +1,19 @@ +using System.ComponentModel.Composition.Hosting; +using System.ComponentModel.Composition; + +namespace NOCQ +{ + public class Catalog + { + DirectoryCatalog dcatalog = new DirectoryCatalog("plugins", "*.dll"); + AssemblyCatalog acatalog = new AssemblyCatalog(Assembly.GetExecutingAssembly()); + AggregateCatalog catalog = new AggregateCatalog(dcatalog, acatalog); + public CompositionContainer Container = new CompositionContainer(catalog); + public Catalog() + { + Container.ComposeParts(this); + + } + } +} + diff --git a/src/NOCQ/Imports/IDataImport.cs b/src/NOCQ/Imports/IDataImport.cs new file mode 100644 index 0000000..9d609a0 --- /dev/null +++ b/src/NOCQ/Imports/IDataImport.cs @@ -0,0 +1,11 @@ +using System; + +namespace NOCQ +{ + public interface IDataImport + { + void Run(); + void Stop(); + } +} + diff --git a/src/NOCQ/NOCQ.csproj b/src/NOCQ/NOCQ.csproj index 24296e1..0d37b52 100644 --- a/src/NOCQ/NOCQ.csproj +++ b/src/NOCQ/NOCQ.csproj @@ -55,9 +55,15 @@ + + - \ No newline at end of file + + + + +