示例#1
0
        private async void SendButton_Click(object sender, RoutedEventArgs e)
        {
            var text = SendText.Text;

            if (SelectedThread.Value == null || string.IsNullOrWhiteSpace(text))
            {
                return;
            }
            await Client.SendMessage(text, SelectedThread.Value.uid, SelectedThread.Value.type);

            SendText.Clear();
        }
示例#2
0
 private async void SubmitButton_Click(object sender, EventArgs e)
 {
     SendMessage msg = new SendMessage(Username, SendText.Text, DateTime.Now);
     SendText.Clear();
     await client.SendObjectAsync(msg);
 }
示例#3
0
 private void clearSend_Click(object sender, EventArgs e)
 {
     SendText.Clear();                       //清除发送区数据
 }