public void sendClientEvent() { //Hide all buttons disableTable(); currClientEvent = new clientEvent(); string tempString = Newtonsoft.Json.JsonConvert.SerializeObject(currClientEvent); byte[] toSend = GetBytes(tempString.ToString()); client.sendData(toSend); waitForAcknowledgement(); }
public void sendClientEvent() { //Hide all buttons disableEvents(); messageNum++; currClientEvent = new clientEvent(); string tempString = Newtonsoft.Json.JsonConvert.SerializeObject(currClientEvent); byte[] toSend = GetBytes(tempString.ToString()); client.sendData(toSend); lastSend = DateTime.Now; eventHappened = true; //waitForAcknowledgement(); }