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(); } }
private void SendMessage() { if (remoteObj != null && txtChatHere.Text.Trim().Length > 0) { remoteObj.SendMsgToSvr(Global.server.GetfullName(yourName) + ": " + txtChatHere.Text); txtChatHere.Text = ""; } }
private void SendMessage() { if (remoteObj != null && txtChatHere.Text.Trim().Length > 0) { remoteObj.SendMsgToSvr(yourName + " says: " + txtChatHere.Text); txtChatHere.Text = ""; } }