TvController_Type() public static method

public static TvController_Type ( int cardId ) : CardType
cardId int
return CardType
コード例 #1
0
 public static TvDatabase.TuningDetail FindTuningDetailOnCard(TvDatabase.Channel channel, int cardId)
 {
     try
     {
         CardType cardType = TvServerPlugin.TvController_Type(cardId);
         IList <TvDatabase.TuningDetail> tuningDetails = channel.ReferringTuningDetail();
         foreach (TvDatabase.TuningDetail tuningDetail in tuningDetails)
         {
             if (CardTunesChannelType(cardType, tuningDetail.ChannelType))
             {
                 return(tuningDetail);
             }
         }
     }
     catch
     {
     }
     return(null);
 }