Esempio n. 1
0
        private static SignalSource DetermineSignalSource(BroadcastMedium bmedium, ServiceType stype)
        {
            SignalSource ssource = 0;

            if (bmedium == BroadcastMedium.AnaCab)
            {
                ssource = SignalSource.AnalogCable;
            }
            else if (bmedium == BroadcastMedium.AnaSat)
            {
                ssource = SignalSource.AnalogSat;
            }
            else if (bmedium == BroadcastMedium.AnaTer)
            {
                ssource = SignalSource.AnalogAntenna;
            }
            else if (bmedium == BroadcastMedium.DigCab)
            {
                ssource = SignalSource.DVBC;
            }
            else if (bmedium == BroadcastMedium.DigSat)
            {
                ssource = SignalSource.DVBS;
            }
            else if (bmedium == BroadcastMedium.DigTer)
            {
                ssource = SignalSource.DVBT;
            }
            ssource |= stype == ServiceType.Radio ? SignalSource.Radio : SignalSource.TV;
            return(ssource);
        }
        private static SignalSource DetermineSignalSource(BroadcastMedium bmedium, ServiceType stype)
        {
            SignalSource ssource = 0;

            if (bmedium == BroadcastMedium.AnaCab)
            {
                ssource = SignalSource.AnalogC;
            }
            else if (bmedium == BroadcastMedium.AnaSat)
            {
                ssource = SignalSource.Analog | SignalSource.Sat;
            }
            else if (bmedium == BroadcastMedium.AnaTer)
            {
                ssource = SignalSource.AnalogT;
            }
            else if (bmedium == BroadcastMedium.DigCab)
            {
                ssource = SignalSource.DvbC;
            }
            else if (bmedium == BroadcastMedium.DigSat)
            {
                ssource = SignalSource.DvbS;
            }
            else if (bmedium == BroadcastMedium.DigTer)
            {
                ssource = SignalSource.DvbT;
            }
            ssource |= stype == ServiceType.Radio ? SignalSource.Radio : SignalSource.Tv;
            return(ssource);
        }
Esempio n. 3
0
 private static SignalSource DetermineSignalSource(BroadcastMedium bmedium, ServiceType stype)
 {
   SignalSource ssource = 0;
   if (bmedium == BroadcastMedium.AnaCab)
     ssource = SignalSource.AnalogC;
   else if (bmedium == BroadcastMedium.AnaSat)
     ssource = SignalSource.Analog | SignalSource.Sat;
   else if (bmedium == BroadcastMedium.AnaTer)
     ssource = SignalSource.AnalogT;
   else if (bmedium == BroadcastMedium.DigCab)
     ssource = SignalSource.DvbC;
   else if (bmedium == BroadcastMedium.DigSat)
     ssource = SignalSource.DvbS;
   else if (bmedium == BroadcastMedium.DigTer)
     ssource = SignalSource.DvbT;
   ssource |= stype == ServiceType.Radio ? SignalSource.Radio : SignalSource.Tv;
   return ssource;
 }