private void SendStroke(TargettedStroke ts)
 {
     client.SendStroke(ts);
 }
 public void receiveStroke(TargettedStroke ts) { }
 public void receiveStrokes(TargettedStroke[] tsa) { }
 void IReceiveEvents.receiveStrokes(TargettedStroke[] tsa)
 {
     foreach (TargettedStroke ts in tsa)
         StrokeAvailable(this, new StrokeAvailableEventArgs { stroke = ts });
 }
Esempio n. 5
0
 public void SendStroke(TargettedStroke stroke)
 {
     Trace.TraceInformation("Beginning Stroke send: " + stroke.startingChecksum, "Sending data");
     Action work = delegate
     {
         wire.SendStroke(stroke);
     };
     tryIfConnected(work);
 }
 void IReceiveEvents.receiveStroke(TargettedStroke ts)
 {
     StrokeAvailable(this, new StrokeAvailableEventArgs { stroke = ts });
 }
 private void ReceiveStroke(TargettedStroke s)
 {
     if (seen.Contains(s.identity)) return;
     seen.Add(s.identity);
     RegisterAction(s.author);
 }
 public Ink(TargettedStroke stroke)
     : this()
 {
     this.Stroke = stroke;
 }
 public void TargettedStrokeConstructorTest()
 {
     TargettedStroke target = new TargettedStroke();
     Assert.Inconclusive("TODO: Implement code to verify target");
 }
 private void StrokeCollected(object sender, InkCanvasStrokeCollectedEventArgs e)
 {
     if (client != null)
     {
         var internalStroke = e.Stroke;
         var newStroke = new TargettedStroke(client.location.currentSlide, client.username, "presentationSpace", "public", internalStroke);
         client.SendStroke(newStroke);
     }
 }