diff options
| author | jp <jp_bruyere@hotmail.com> | 2016-04-01 09:40:35 +0200 |
|---|---|---|
| committer | jp <jp_bruyere@hotmail.com> | 2016-04-01 09:40:35 +0200 |
| commit | e2915c38e4340f6e6d565f81e34aafa8e20f54ee (patch) | |
| tree | 930a04ef5a73a5ac124689da8dee2550345c3ed7 /src/Interface.cs | |
| parent | a2151156e8e5aa7deb5cc5e7eb5d6f416599217e (diff) | |
allow loading custom widgets
Diffstat (limited to 'src/Interface.cs')
| -rw-r--r-- | src/Interface.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Interface.cs b/src/Interface.cs index 05548587..97ab1c9d 100644 --- a/src/Interface.cs +++ b/src/Interface.cs @@ -153,6 +153,13 @@ namespace Crow } Type t = Type.GetType ("Crow." + root); + if (t == null) { + Assembly a = Assembly.GetEntryAssembly (); + foreach (Type expT in a.GetExportedTypes ()) { + if (expT.Name == root) + t = expT; + } + } stream.Seek (0, SeekOrigin.Begin); return t; |