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

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

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

--- trunk/libxmltv/Core/XMLTVRuntimeInstance.cs	2013/03/10 18:19:12	120
+++ trunk/libxmltv/Core/XMLTVRuntimeInstance.cs	2013/03/16 19:56:47	189
@@ -10,6 +10,8 @@
 using System.Globalization;
 using System.Diagnostics;
 using System.Xml.Linq;
+using Enterprise.Logging;
+using System.IO;
 
 namespace libxmltv.Core
 {
@@ -136,6 +138,7 @@
             }
             if (this.Channels != null)
             {
+                this.Channels.TrimExcess();
                 xmltv_logger.Info.WriteLine("Source Loaded: '{0}' Channels from source '{1}'", this.Channels.Count, this.Source.SourceName);
             }
             else
@@ -145,6 +148,7 @@
             }
             if (this.Programs != null)
             {
+                this.Programs.TrimExcess();
                 xmltv_logger.Info.WriteLine("Source Loaded: '{0}' Programs from source '{1}'", this.Programs.Count, this.Source.SourceName);
             }
             else
@@ -310,7 +314,7 @@
                 if (!CreateHandlerForNode(node)) { xmltv_logger.Verbose.Debug.WriteLine("Unable to create handler for node: '{0}'", node.Name.ToString()); }
                 node_index++;
                 progress = 100.0 * (node_index / total_nodes);
-                xmltv_logger.ReportProgress(this, new Enterprise.Logging.ReportProgressEventArgs((int)progress));
+                xmltv_logger.ReportProgress(this, new ReportProgressEventArgs((int)progress, string.Format("Loading {0} ==> {1:00}%", this.gInstance.XmlFile_Name, (int)progress)));
                 Application.DoEvents();
             }
         }

 

  ViewVC Help
Powered by ViewVC 1.1.22