diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/GraphicObjects/TextBox.cs | 5 | ||||
| -rw-r--r-- | src/IMLReader.cs | 4 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/GraphicObjects/TextBox.cs b/src/GraphicObjects/TextBox.cs index 5c3772b7..81fce3e2 100644 --- a/src/GraphicObjects/TextBox.cs +++ b/src/GraphicObjects/TextBox.cs @@ -29,14 +29,13 @@ namespace Crow public class TextBox : Label { #region CTOR + public TextBox() + { } public TextBox(string _initialValue) : base(_initialValue) { } - - public TextBox() - { } #endregion #region GraphicObject overrides diff --git a/src/IMLReader.cs b/src/IMLReader.cs index 7792de4d..1b2a5efb 100644 --- a/src/IMLReader.cs +++ b/src/IMLReader.cs @@ -133,7 +133,7 @@ namespace Crow else if (reader.Name == "Path") path = reader.Value; } - + reader.MoveToElement (); using (IMLReader iTmp = new IMLReader (null, reader.ReadInnerXml ())) { string uid = Guid.NewGuid ().ToString (); Interface.Instantiators [uid] = @@ -275,7 +275,7 @@ namespace Crow if (t == null) throw new Exception (reader.Name + " type not found"); - reader.il.Emit(OpCodes.Newobj, t.GetConstructors () [0]); + reader.il.Emit(OpCodes.Newobj, t.GetConstructors () [0]);//TODO:search parameterless ctor reader.il.Emit (OpCodes.Stloc_0);//child is now loc_0 reader.emitLoader(t); |