コード例 #1
0
        /// <summary>
        /// Registers all the known interpreters
        /// </summary>
        private void InitIntepreters()
        {
            BasePacketInterpreter vI = null;

            vI = new CommandRunPacketInterpreter();
            foreach (byte vB in vI.AcceptedPacket())
            {
                this.mRegisteredIntepreters[vB] = vI;
            }


            vI = new MediaPlayerPacketInterpreter();
            foreach (byte vB in vI.AcceptedPacket())
            {
                this.mRegisteredIntepreters[vB] = vI;
            }
        }
コード例 #2
0
ファイル: FrmMain.cs プロジェクト: Lords08/alanarduinotools
        /// <summary>
        /// Registers all the known interpreters
        /// </summary>
        private void InitIntepreters()
        {
            BasePacketInterpreter vI = null;

            vI = new CommandRunPacketInterpreter();
            foreach (byte vB in vI.AcceptedPacket()) {
                this.mRegisteredIntepreters[vB] = vI;
            }

            vI = new MediaPlayerPacketInterpreter();
            foreach (byte vB in vI.AcceptedPacket()) {
                this.mRegisteredIntepreters[vB] = vI;
            }
        }