private void ChatClientForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (m_ChatClient.GetState() > 0)
     {
         WebMessage.SendString(m_ChatClient.GetSession(), "LEAVE|" + edtUser.Text);
         Thread.Sleep(200);
     }
     m_ChatClient.Disconnect();
 }
 private void btnChat_Click(object sender, EventArgs e)
 {
     WebMessage.SendString(m_ChatClient.GetSession(), "CHAT|" + edtUser.Text + "|" + edtMsg.Text);
     edtMsg.Text = "";
 }
 private void btnJoin_Click(object sender, EventArgs e)
 {
     WebMessage.SendString(m_ChatClient.GetSession(), "JOIN|" + edtUser.Text);
 }