Exemple #1
0
        /// <summary>
        /// sends the diseqc command to the card
        /// </summary>
        /// <param name="parameters">The parameters.</param>
        /// <param name="channel">The current tv/radio channel</param>
        public bool SendDiseqcCommand(ScanParameters parameters, DVBSChannel channel)
        {
            bool succeeded = true;

            try
            {
                if (_knc != null)
                {
                    _knc.SendDiseqCommand(parameters, channel);
                    System.Threading.Thread.Sleep(100);
                }
                if (_digitalEveryWhere != null)
                {
                    _digitalEveryWhere.SendDiseqcCommand(parameters, channel);
                    System.Threading.Thread.Sleep(100);
                }
                if (_technoTrend != null)
                {
                    _technoTrend.SendDiseqCommand(parameters, channel);
                    System.Threading.Thread.Sleep(100);
                }
                if (_twinhan != null)
                {
                    _twinhan.SendDiseqCommand(parameters, channel);
                    System.Threading.Thread.Sleep(100);
                }
                if (_hauppauge != null)
                {
                    succeeded = _hauppauge.SendDiseqCommand(parameters, channel);
                    System.Threading.Thread.Sleep(100);
                }
                if (_genericbdas != null)
                {
                    _genericbdas.SendDiseqCommand(parameters, channel);
                    System.Threading.Thread.Sleep(100);
                }
                if (_conexant != null)
                {
                    _conexant.SendDiseqCommand(parameters, channel);
                    System.Threading.Thread.Sleep(100);
                }
                if (_profred != null)
                {
                    _profred.SendDiseqCommand(parameters, channel);
                    System.Threading.Thread.Sleep(100);
                }
                if (_genpix != null)
                {
                    _genpix.SendDiseqCommand(parameters, channel);
                    System.Threading.Thread.Sleep(100);
                }
                if (_TeVii != null)
                {
                    _TeVii.SendDiseqCommand(parameters, channel);
                    System.Threading.Thread.Sleep(100);
                }
            }
            catch (Exception ex)
            {
                Log.Log.Write(ex);
            }
            return(succeeded);
        }