Пример #1
0
        public bool IsChannelEnabled(TvChannel channel)
        {
            bool result;

            if (ChannelRules.TryGetValue(channel, out result))
            {
                return(result);
            }
            return(defaultChannels.Contains(channel.Name));
        }
Пример #2
0
        public static TvProgram FromHtml(VirtualString html, DateTime day, TvChannel channel)
        {
            TvProgram prog;


            prog = new TvProgram(html, day);


            prog.Channel = channel;
            return(prog);
        }
Пример #3
0
 public TvChannelRule(TvChannel channel)
 {
     this.Channel     = channel;
     this.DisplayName = channel.DisplayName;
     this.IsEnabled   = App.Preferences.IsChannelEnabled(channel);
 }
Пример #4
0
 public ChannelDay(TvChannel Channel, DateTime Day)
 {
     this.Channel = Channel;
     this.Day     = Day;
 }