private void SendStroke(TargettedStroke ts)
 {
     client.SendStroke(ts);
 }
 public void receiveStroke(TargettedStroke ts) { }
 public void receiveStrokes(TargettedStroke[] tsa) { }
Пример #4
0
 void IReceiveEvents.receiveStrokes(TargettedStroke[] tsa)
 {
     foreach (TargettedStroke ts in tsa)
         StrokeAvailable(this, new StrokeAvailableEventArgs { stroke = ts });
 }
Пример #5
0
 public void SendStroke(TargettedStroke stroke)
 {
     Trace.TraceInformation("Beginning Stroke send: " + stroke.startingChecksum, "Sending data");
     Action work = delegate
     {
         wire.SendStroke(stroke);
     };
     tryIfConnected(work);
 }
Пример #6
0
 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");
 }
Пример #10
0
 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);
     }
 }