diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-03-06 22:48:20 +0100 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-03-06 22:49:34 +0100 |
| commit | bf1c5457f87dbe1a30693f18c1599bd3fd1dd860 (patch) | |
| tree | 07ff96c598722d82507cc1bf388aeb44b3caf6b8 /src/GraphicObjects/Container.cs | |
| parent | f6418d2a9219a63116ba706cbf54d8c0e8d88bff (diff) | |
divers
Diffstat (limited to 'src/GraphicObjects/Container.cs')
| -rw-r--r-- | src/GraphicObjects/Container.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/GraphicObjects/Container.cs b/src/GraphicObjects/Container.cs index cb6145a8..58512a08 100644 --- a/src/GraphicObjects/Container.cs +++ b/src/GraphicObjects/Container.cs @@ -3,6 +3,7 @@ using System.Xml.Serialization; using System.Reflection; using System.ComponentModel; using System.Linq; +using System.Threading; namespace Crow { @@ -50,11 +51,11 @@ namespace Crow return; Type t = Type.GetType("Crow." + subTree.Name); - GraphicObject go = (GraphicObject)Activator.CreateInstance(t); + GraphicObject go = (GraphicObject)Activator.CreateInstance(t); - (go as IXmlSerializable).ReadXml(subTree); - - SetChild(go); + (go as IXmlSerializable).ReadXml(subTree); + + SetChild(go); subTree.Read();//closing tag } |