OSDN Git Service

123
[psychlops/silverlight.git] / dev4 / psychlops / extention / standard / widget.cs
index 4f7fcfb..49c7848 100644 (file)
@@ -79,6 +79,8 @@ namespace Psychlops
                                        elem.SetProperty(name, value);\r
                                }\r
 \r
+\r
+                               public static implicit operator double(Element i) { return i.getValueAsDouble(); }\r
                                public double getValueAsDouble()\r
                                {\r
                                        double v = 0;\r
@@ -94,6 +96,7 @@ namespace Psychlops
                                        return v;\r
                                }\r
 \r
+                               public static implicit operator string(Element i) { return i.getProperty("value").ToString(); }\r
                                public System.Object getProperty(string name)\r
                                {\r
                                        Internal.Main.widgetStack.Dispatcher.BeginInvoke(new Connector.VoidString(getProperty__), name);\r