Beispiel #1
0
 //用于绑定enter键
 private void SendBox_KeyUp(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         Checkinclient.Talk(us.Name, this.SendBox.Text);
         this.SendBox.Text = "";
     }
 }
 private void SendBnt_Click(object sender, RoutedEventArgs e)
 {
     Checkinclient.Talk(us.Name, this.SendBox.Text);
     this.SendBox.Text = "";
 }