]> O.S.I.I.S - jp/crow.git/commitdiff
* IMLReader.cs, MessageBox.goml:
authorjpbruyere <jp.bruyere@hotmail.com>
Wed, 10 Aug 2016 06:57:06 +0000 (08:57 +0200)
committerjpbruyere <jp.bruyere@hotmail.com>
Wed, 10 Aug 2016 06:57:06 +0000 (08:57 +0200)
  debug

* TextBox.cs:
  debug
CTOR order! parameterless should be first

Templates/MessageBox.goml
src/GraphicObjects/TextBox.cs
src/IMLReader.cs

index 4489ee6b2df7d5800304c4b6910c213b14cc5160..2468b7fc3b1c220f4b36e1066397df5efe57261a 100644 (file)
@@ -22,7 +22,7 @@
                                Path="#Crow.Images.Icons.iconInfo.svg" />
                        <Label Font="serif, 12" Height="{./HeightPolicy}" Width="{./WidthPolicy}" Text="{./Message}"
                                TextAlignment="Left"
-                               Multiline="true" WordWrap="true"/>              
+                               Multiline="true" />             
                </HorizontalStack>
                <HorizontalStack Height="-1" Width="{./WidthPolicy}" Margin="3">
                        <GraphicObject Height="5"/>
index 5c3772b7fc22a52461ee0339cdd59e1fd9e3ebaa..81fce3e2534d6e1bd93fed7b1def91bd52002d14 100644 (file)
@@ -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
index 7792de4dee309214d8934cef39a2a91684608bf5..1b2a5efbc163fd2df76ab77b7c4fd9760f60b5a2 100644 (file)
@@ -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);