public bool IsChannelEnabled(TvChannel channel) { bool result; if (ChannelRules.TryGetValue(channel, out result)) { return(result); } return(defaultChannels.Contains(channel.Name)); }
public static TvProgram FromHtml(VirtualString html, DateTime day, TvChannel channel) { TvProgram prog; prog = new TvProgram(html, day); prog.Channel = channel; return(prog); }
public TvChannelRule(TvChannel channel) { this.Channel = channel; this.DisplayName = channel.DisplayName; this.IsEnabled = App.Preferences.IsChannelEnabled(channel); }
public ChannelDay(TvChannel Channel, DateTime Day) { this.Channel = Channel; this.Day = Day; }