/[xmltv_parser]/trunk/libxmltv/Core/XMLTVChannelCollection.cs
ViewVC logotype

Diff of /trunk/libxmltv/Core/XMLTVChannelCollection.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/libxmltv/Core/XMLTVChannelCollection.cs	2013/03/08 03:01:48	42
+++ trunk/libxmltv/Core/XMLTVChannelCollection.cs	2013/03/08 03:09:49	43
@@ -5,6 +5,7 @@
 using libxmltv.Interfaces;
 using System.Diagnostics;
 using System.Xml.Linq;
+using System.Windows.Forms;
 
 namespace libxmltv.Core
 {
@@ -38,12 +39,12 @@
             {
                 Channel channel = new Channel(c);
                 entries.Add(channel.Id, channel);
+                Application.DoEvents();
             }
         }
         public override string ToString()
         {
-            //return string.Format("XmlTv Source: '{0}' (Generated by: '{1}') (support: '{2}')", SourceName, GeneratorName, GeneratorUrl);
-            return string.Empty;
+            return string.Format("Channel Count: {0}", Collection == null ? 0 : Collection.Count);
         }
     }
     [Serializable]
@@ -61,10 +62,14 @@
         {
             // get the channel id
             Id = e.Attribute(XMLTVConstants.Channels.ChannelId).Value;
+            XMLTV_LOGGER.Log.Verbose.Debug.WriteLine("\tchannel_id: {0}", Id);
             var names = e.Descendants(XMLTVConstants.Channels.ChannelDisplayName).ToList();
             Number = Convert.ToInt32(names[1].Value);
+            XMLTV_LOGGER.Log.Verbose.Debug.WriteLine("\tchannel_number: {0}", Number);
             CallSign = names[2].Value;
+            XMLTV_LOGGER.Log.Verbose.Debug.WriteLine("\tchannel_callsign: {0}", CallSign);
             Name = names[3].Value;
+            XMLTV_LOGGER.Log.Verbose.Debug.WriteLine("\tchannel_name: {0}", Name);
         }
         #region IXMLTVChannel members
         public string Id { get; private set; }

 

  ViewVC Help
Powered by ViewVC 1.1.22