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(); }
private async void SubmitButton_Click(object sender, EventArgs e) { SendMessage msg = new SendMessage(Username, SendText.Text, DateTime.Now); SendText.Clear(); await client.SendObjectAsync(msg); }
private void clearSend_Click(object sender, EventArgs e) { SendText.Clear(); //清除发送区数据 }