Ejemplo n.º 1
0
		internal SwhGuide(string nowUrl, CaptionListedGuide listedGuide, bool capitalize) {
			this.nowUrl=nowUrl;
			this.listedGuide=listedGuide;
			if (listedGuide != null) {
				listedGuide.NextBroadcastChanged+=listedGuide_NextBroadcastChanged;
				NextBroadcast=listedGuide.NextBroadcast;
			}
			this.capitalize=capitalize; // Visi kanāli, izņemot Spin, raksta nosaukumus lieliem burtiem.
		}
Ejemplo n.º 2
0
 internal SwhGuide(string nowUrl, CaptionListedGuide listedGuide, bool capitalize)
 {
     this.nowUrl      = nowUrl;
     this.listedGuide = listedGuide;
     if (listedGuide != null)
     {
         listedGuide.NextBroadcastChanged += listedGuide_NextBroadcastChanged;
         NextBroadcast = listedGuide.NextBroadcast;
     }
     this.capitalize = capitalize;           // Visi kanāli, izņemot Spin, raksta nosaukumus lieliem burtiem.
 }
Ejemplo n.º 3
0
        public override Guide GetGuide(uint number)
        {
            string name; CaptionListedGuide listedGuide = null;

            switch (number)
            {
            case 1: name = "swh"; listedGuide = new SwhListedGuide(false, timezone); break;

            case 2: name = "plus"; listedGuide = new SwhListedGuide(true, timezone); break;

            case 3: name = "rock"; break;

            case 4: name = "spin"; break;

            default: name = "gold"; break;
            }
            return(new SwhGuide(string.Format("http://195.13.237.142:8080/{0}_online.xml", name), listedGuide, number < 4));
        }
Ejemplo n.º 4
0
 protected CombinedIcyGuide(CaptionListedGuide listedGuide, Encoding icyEncoding) : base(icyEncoding, null)
 {
     this.listedGuide = listedGuide;
     listedGuide.NextBroadcastChanged += listedGuide_NextBroadcastChanged;
 }
Ejemplo n.º 5
0
		protected CombinedIcyGuide(CaptionListedGuide listedGuide, Encoding icyEncoding) : base(icyEncoding, null) {
			this.listedGuide=listedGuide;
			listedGuide.NextBroadcastChanged+=listedGuide_NextBroadcastChanged;
		}