public void boxTest()
 {
     TargettedTextBox target = new TargettedTextBox(); // TODO: Initialize to an appropriate value
     TextBox expected = null; // TODO: Initialize to an appropriate value
     TextBox actual;
     target.box = expected;
     actual = target.box;
     Assert.AreEqual(expected, actual);
     Assert.Inconclusive("Verify the correctness of this test method.");
 }
 private void SendTextBox(TargettedTextBox ttb)
 {
     client.SendTextBox(ttb);
 }
 public void receiveChat(TargettedTextBox ttb) { }
 public void receiveTextBox(TargettedTextBox ttb) { }
예제 #5
0
 public void SendTextBox(TargettedTextBox textbox)
 {
     Trace.TraceInformation("Beginning TextBox send: " + textbox.identity);
     Action work = delegate
     {
         wire.SendTextbox(textbox);
     };
     tryIfConnected(work);
 }
예제 #6
0
 public void receiveChat(TargettedTextBox ttb)
 {
     ChatAvailable(this, new ChatAvailableEventArgs { chat = ttb });
 }
예제 #7
0
 void IReceiveEvents.receiveTextBox(TargettedTextBox ttb)
 {
     TextBoxAvailable(this, new TextBoxAvailableEventArgs { textBox = ttb });
 }
 private void ReceiveTextbox(TargettedTextBox t)
 {
     if (seen.Contains(t.identity)) return;
     seen.Add(t.identity);
     RegisterAction(t.author);
 }
 public TextBox(TargettedTextBox textBox)
     : this()
 {
     Box = textBox;
 }
예제 #10
0
 private void NewTextBox(object sender, RoutedEventArgs e)
 {
     if (client != null)
     {
         var internalTextBox = new TextBox();
         internalTextBox.Text = "this is a new textbox from MeTLLib";
         Canvas.SetLeft(internalTextBox, 100);
         Canvas.SetTop(internalTextBox, 100);
         var newTargettedTextBox = new TargettedTextBox(client.location.currentSlide, client.username, "presentationSpace", "public", internalTextBox);
         client.SendTextBox(newTargettedTextBox);
     }
 }
예제 #11
0
 private void receiveChatMessage(TargettedTextBox box)
 {
     var textBox = box.box;
     textBox.BorderThickness = new Thickness(0);
     if (!messageAllowed(textBox)) return;
     AddMessage(textBox);
 }
 public void TargettedTextBoxConstructorTest()
 {
     TargettedTextBox target = new TargettedTextBox();
     Assert.Inconclusive("TODO: Implement code to verify target");
 }