예제 #1
0
 private void textBox1_KeyUp(object sender, KeyEventArgs e)
 {
     if ((e.KeyCode == Keys.Return) && (textBox1.Text.Length > 0))
     {
         _Controller.TextChatRequest(DDD_Global.Instance.PlayerID, textBox1.Text, "TEAM", this.Channel);
         textBox1.Text     = string.Empty;
         m_currentlyTyping = false;
     }
     else if (m_currentlyTyping == false)
     {
         m_currentlyTyping = true;
         //Console.WriteLine(String.Format("Starting chat request by {0} for {1}", DDD_Global.Instance.PlayerID, this.Channel));
         _Controller.BeginTextChatRequest(DDD_Global.Instance.PlayerID, this.Channel);
     }
 }