Example #1
0
 public virtual void activate(MundoCore.Runtime.TypedMap m)
 {
     m.GetDouble("pscX", out this.pscX);
       m.GetInt("force", out this.force);
       m.GetDouble("pscY", out this.pscY);
       m.GetDouble("x", out this.x);
       m.GetDouble("y", out this.y);
       m.GetString("penID", out this.penID);
       m.GetLong("timestamp", out this.timestamp);
 }
 public override void Invoke(Object o, MundoCore.Runtime.TypedMap m, MundoCore.Runtime.TypedMap r)
 {
     string n = m.GetString("request");
       string t = m.GetString("ptypes");
       IHandwritingRecognitionService p=(IHandwritingRecognitionService)o;
       try
       {
     if (n=="StartRecognitionFor" && t=="s")
     {
       p.StartRecognitionFor(m.GetString("p0"));
       return;
     }
     if (n=="StartRecognitionFor" && t=="s,i")
     {
       r.PutObject("value", p.StartRecognitionFor(m.GetString("p0"), m.GetInt("p1")));
       return;
     }
     if (n=="StopRecognitionFor" && t=="s")
     {
       p.StopRecognitionFor(m.GetString("p0"));
       return;
     }
     if (n=="_getMethods" && t=="")
     {
       r.PutString("value",
       "v StartRecognitionFor(s)\n"+
       "boolean StartRecognitionFor(s,i)\n"+
       "v StopRecognitionFor(s)\n"+
       "");
       return;
     }
       }
       catch(Exception x)
       {
     ExceptionOccured(x, o, n, m, s);
       }
 }
Example #3
0
 public virtual void activate(MundoCore.Runtime.TypedMap m)
 {
     m.GetInt("type", out this.type);
       this.guid=(GUID)m.GetActivated("guid");
       m.GetString("penID", out this.penID);
 }