]> O.S.I.I.S - jp/crow.git/commitdiff
change style values from string to object to be able to store dynMehods
authorjpbruyere <jp.bruyere@hotmail.com>
Sat, 30 Jul 2016 17:45:38 +0000 (19:45 +0200)
committerjpbruyere <jp.bruyere@hotmail.com>
Sat, 30 Jul 2016 17:45:38 +0000 (19:45 +0200)
modifié :         src/CompilerServices/CompilerServices.cs
modifié :         src/GraphicObjects/GraphicObject.cs
modifié :         src/Interface.cs
modifié :         src/StyleReader.cs

src/CompilerServices/CompilerServices.cs
src/GraphicObjects/GraphicObject.cs
src/Interface.cs
src/StyleReader.cs

index 1fff4e7d67d21493b7b0c07dbf0672e88ac71dc4..4a85c442aae109dca193ec5eb64e45b7cc0aeaf0 100644 (file)
@@ -56,6 +56,7 @@ namespace Crow
                                if (!b.FindTarget ())
                                        continue;
 
+                               //group Bindings by target instanceq
                                List<Binding> bindings = null;
                                if (!resolved.TryGetValue (b.Target.Instance, out bindings)) {
                                        bindings = new List<Binding> ();
index 1863dccd56ab76cf49bd3dafb744e2d9cef1d97b..a24b5763d4f3c5d886854c0f6f6e11173ef902e2 100644 (file)
@@ -509,7 +509,7 @@ namespace Crow
                                return;
                        }
 
-                       List<Dictionary<string, string>> styling = new List<Dictionary<string, string>>();
+                       List<Dictionary<string, object>> styling = new List<Dictionary<string, object>>();
 
                        //Search for a style mathing :
                        //1: Full class name, with full namespace
index b8b06918cc03093823260da7866655a0007d7191..a83a5305f29ba9fccb9ad2f3504062cb890f7583 100644 (file)
@@ -90,7 +90,7 @@ namespace Crow
 
                public Queue<LayoutingQueueItem> LayoutingQueue = new Queue<LayoutingQueueItem> ();
                public Queue<GraphicObject> GraphicUpdateQueue = new Queue<GraphicObject>();
-               public Dictionary<string, Dictionary<string, string>> Styling;
+               public Dictionary<string, Dictionary<string, object>> Styling;
                public string Clipboard;
                public static void RegisterForGraphicUpdate(GraphicObject g)
                {
@@ -269,7 +269,7 @@ namespace Crow
                        System.Globalization.CultureInfo savedCulture = Thread.CurrentThread.CurrentCulture;
                        Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture;
 
-                       Styling = new Dictionary<string, Dictionary<string, string>> ();
+                       Styling = new Dictionary<string, Dictionary<string, object>> ();
 
                        //fetch styling info in this order, if member styling is alreadey referenced in previous
                        //assembly, it's ignored.
index 5060b3d98c154d13eac81223ab68dcdd4f5f90a4..0c4ce2bc6c9f86db7d5bc4d471ded2f3c92ef2a7 100644 (file)
@@ -106,7 +106,7 @@ namespace Crow
 
                                                                foreach (string tc in targetsClasses) {
                                                                        if (!iface.Styling.ContainsKey (tc))
-                                                                               iface.Styling [tc] = new Dictionary<string, string> ();
+                                                                               iface.Styling [tc] = new Dictionary<string, object> ();
                                                                        else if (iface.Styling [tc].ContainsKey (currentProperty))
                                                                                continue;
                                                                        iface.Styling [tc] [currentProperty] = expression;