Exemplo n.º 1
0
        /// <summary>
        /// create one instance with blue tooth connection.
        /// </summary>
        /// <param name="COMINDEX"></param>
        /// <returns></returns>
        public static TransmissionManager CreateBlueToothTransmissionManager(int comIndex)
        {
            TransmissionManager transmissionManager = new TransmissionManager(true);

            /* int comIndex = 4;
             * try
             * {
             *   comIndex = int.Parse(ConfigurationManager.AppSettings["COMINDEX"]);
             * }
             * catch { }*/
            if (comIndex <= 0)
            {
                comIndex = 4;
            }
            transmissionManager.manager = new BlueToothManager(comIndex);
            return(transmissionManager);
        }
Exemplo n.º 2
0
        /// <summary>
        /// create one instance with blue tooth connection.
        /// </summary>
        /// <param name="COMINDEX"></param>
        /// <returns></returns>
        public static TransmissionManager CreateCanbusTransmissionManager()
        {
            TransmissionManager transmissionManager = new TransmissionManager(false);

            return(transmissionManager);
        }