public void innerTranmit(byte[] msgReceive)
        {
            String str = BitConverter.ToString(msgReceive);

            //if (msgReceive[0] == 'F' && msgReceive[1] == 'T'){
            if (msgReceive.Is("FT"))
            {
                graphStarted = true;
            }

            Tuple <int, int> key = new Tuple <int, int>(msgReceive.PacketKey(), msgReceive.PacketNodeId());

            //int key = msgReceive.PacketKey();
            for (int i = 0; i < EventAnyData.Count;)
            {
                if (EventAnyData[i] == null)
                {
                    EventAnyData.RemoveAt(i);
                    continue;
                }
                EventAnyData[i](msgReceive);
                i++;
            }

            for (int i = 0; i < getListEventHandler(key).Count;)
            {
                if (EventHandlers[key][i] == null)
                {
                    EventHandlers[key].RemoveAt(i);
                    continue;
                }
                EventHandlers[key][i](msgReceive);
                i++;
            }
        }
        private void innerTransmitRS232(byte[] msgReceive)
        {
            Instance.ComunicationStatus = RoundBoolLed.PASSED;
            Tuple <int, int> key = new Tuple <int, int>(msgReceive.KeyFromRS232Pckt(), 127);

            for (int i = 0; i < EventAnyData.Count;)
            {
                if (EventAnyData[i] == null)
                {
                    EventAnyData.RemoveAt(i);
                    continue;
                }
                EventAnyData[i](msgReceive);
                i++;
            }
            if (msgReceive.packetHasError())
            {
                return;
            }
            for (int i = 0; i < getListEventHandler(key).Count;)
            {
                if (EventHandlers[key][i] == null)
                {
                    EventHandlers[key].RemoveAt(i);
                    continue;
                }
                EventHandlers[key][i](msgReceive);
                i++;
            }
        }