Exemple #1
0
        private void btnSend_Click(object sender, EventArgs e)
        {
            ArrayList onlineUser = remoteObj.GetOnlineUser();

            lstOnlineUser.DataSource = onlineUser;
            skipCounter = 0;

            if (onlineUser.Count < 2)
            {
                remoteObj.SendMsgToSvr(txtChatHere.Text);
            }
            else
            {
                SendMessage();
            }
        }
Exemple #2
0
 private void SendMessage()
 {
     if (remoteObj != null && txtChatHere.Text.Trim().Length > 0)
     {
         remoteObj.SendMsgToSvr(Global.server.GetfullName(yourName) + ": " + txtChatHere.Text);
         txtChatHere.Text = "";
     }
 }
Exemple #3
0
 private void SendMessage()
 {
     if (remoteObj != null && txtChatHere.Text.Trim().Length > 0)
     {
         remoteObj.SendMsgToSvr(yourName + " says: " + txtChatHere.Text);
         txtChatHere.Text = "";
     }
 }