diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-03-13 23:39:22 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-03-13 23:39:22 +0100 |
| commit | e5bb6eaee1d61bdcc60ad0a0fb7e81911bd57e47 (patch) | |
| tree | 91b6ed1cdd153033e2cb7c62c3e0ebf67284ef4c /src/GraphicObjects/Container.cs | |
| parent | 09e26d9c08d22f31e1164237d63e2757822ff5d6 (diff) | |
search entry assembly for new crow widgets
Diffstat (limited to 'src/GraphicObjects/Container.cs')
| -rw-r--r-- | src/GraphicObjects/Container.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/GraphicObjects/Container.cs b/src/GraphicObjects/Container.cs index 58512a08..69e3a3b4 100644 --- a/src/GraphicObjects/Container.cs +++ b/src/GraphicObjects/Container.cs @@ -51,6 +51,13 @@ namespace Crow return; Type t = Type.GetType("Crow." + subTree.Name); + if (t == null) { + Assembly a = Assembly.GetEntryAssembly (); + foreach (Type expT in a.GetExportedTypes ()) { + if (expT.Name == subTree.Name) + t = expT; + } + } GraphicObject go = (GraphicObject)Activator.CreateInstance(t); (go as IXmlSerializable).ReadXml(subTree); |