private void sendToComms(string c) { ArrayList com = new ArrayList(); string[] comms = c.Split(','); int siz = comms.Length; for (int i = 0; i < siz; i++) { com.Add(comms[i]); } lock (CommsCommands) { CommsCommands.Add(com); CommandEvent.Set(); } }