Esempio n. 1
0
 private void replyLabel_Click(object sender, EventArgs e)
 {
     if (enableSend)
     {
         if (host != null && host.GetType() == typeof(NotifyClient))
         {
             NotifyClient invoker = (NotifyClient)host;
             invoker.SendMessage(CMD_TYPE.MSG, "ALL", this.msgBox.Text);
             this.CloseThisWindow();
         }
     }
 }
Esempio n. 2
0
 /// <summary>
 /// 输入文本,立即查询
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void queryBox_TextChanged(object sender, EventArgs e)
 {
     client.SendMessage(Protocol.CMD_TYPE.QUERY, "HOST", string.Format("3@1@4@1@5@9hint3@1@4@1@5@9{0}", this.queryBox.Text.Trim()));
 }