Beispiel #1
0
 public void ValueChanged(JSC.JSValue value) {
   if(value.ValueType == JSC.JSValueType.String) {
     _oldValue = value.Value as string;
   } else {
     _oldValue = value.ToString();
   }
   base.Text = _oldValue;
 }
Beispiel #2
0
 public void ValueChanged(JSC.JSValue value) {
   string rez=null;
   if(value == null) {
     rez = "null";
   } else {
     if(value.ValueType == JSC.JSValueType.Object) {
       if(value.Value == null) {
         rez = "null";
       } else {
         var sc = value["$schema"];
         if((rez = sc.Value as string) == null) {
           rez = "Object";
         }
       }
     } else {
       rez = value.ToString();
     }
   }
   this.Text = rez;
 }