Пример #1
0
        /// <summary>
        /// Writes an Lvar using Majestic Software's methodoly. Specifically for the Dash 8 Q400.
        /// </summary>
        /// <param name="idcode">the Lvar idcode retrieved using the varlist spreadsheet and IntVarCRCGen.exe</param>
        /// <param name="dataType">the underlying data type to write to</param>
        /// <param name="sourceVariable">the VoiceAttack source variable to read from</param>
        public void writeMjc(int idcode, Type dataType, string sourceVariable)
        {
            lock (m_connectionLock)
            {
                if (!m_isConnected)
                {
                    writeErrorToLog("Not connected");
                    return;
                }
            }

            Mjc writer = new Mjc(m_fsuipc, m_offsetFactory, m_vaProxy);

            writer.write(idcode, dataType, sourceVariable, writeErrorToLog);
        }
Пример #2
0
        /// <summary>
        /// Reads an Lvar using Majestic Software's methodoly. Specifically for the Dash 8 Q400.
        /// </summary>
        /// <param name="idcode">the Lvar idcode retrieved using the varlist spreadsheet and IntVarCRCGen.exe</param>
        /// <param name="dataType">the underlying data type to read from</param>
        /// <param name="destinationVariable">the VoiceAttack destination variable to update</param>
        public void readMjc(int idcode, Type dataType, string destinationVariable)
        {
            lock (m_connectionLock)
            {
                if (!m_isConnected)
                {
                    writeErrorToLog("Not connected");
                    return;
                }
            }

            Mjc reader = new Mjc(m_fsuipc, m_offsetFactory, m_vaProxy);

            reader.read(idcode, dataType, destinationVariable, writeErrorToLog);
        }