Esempio n. 1
0
 /// <summary>
 /// 发送消息
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnSend_Click(object sender, EventArgs e)
 {
     try
     {
         hubProxy.Invoke("send", this.txtSend.Text).Wait();
         hubProxy.GetValue <string>("ddd");
         txtSend.Text           = "";
         txtSend.SelectionStart = 0;
         txtSend.Select();
     }
     catch (Exception exception)
     {
         XtraMessageBox.Show(exception.Message);
     }
 }