/[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

revision 120 by william, Sun Mar 10 18:19:12 2013 UTC revision 189 by william, Sat Mar 16 19:56:47 2013 UTC
# Line 10  using System.Reflection; Line 10  using System.Reflection;
10  using System.Globalization;  using System.Globalization;
11  using System.Diagnostics;  using System.Diagnostics;
12  using System.Xml.Linq;  using System.Xml.Linq;
13    using Enterprise.Logging;
14    using System.IO;
15    
16  namespace libxmltv.Core  namespace libxmltv.Core
17  {  {
# Line 136  namespace libxmltv.Core Line 138  namespace libxmltv.Core
138              }              }
139              if (this.Channels != null)              if (this.Channels != null)
140              {              {
141                    this.Channels.TrimExcess();
142                  xmltv_logger.Info.WriteLine("Source Loaded: '{0}' Channels from source '{1}'", this.Channels.Count, this.Source.SourceName);                  xmltv_logger.Info.WriteLine("Source Loaded: '{0}' Channels from source '{1}'", this.Channels.Count, this.Source.SourceName);
143              }              }
144              else              else
# Line 145  namespace libxmltv.Core Line 148  namespace libxmltv.Core
148              }              }
149              if (this.Programs != null)              if (this.Programs != null)
150              {              {
151                    this.Programs.TrimExcess();
152                  xmltv_logger.Info.WriteLine("Source Loaded: '{0}' Programs from source '{1}'", this.Programs.Count, this.Source.SourceName);                  xmltv_logger.Info.WriteLine("Source Loaded: '{0}' Programs from source '{1}'", this.Programs.Count, this.Source.SourceName);
153              }              }
154              else              else
# Line 310  namespace libxmltv.Core Line 314  namespace libxmltv.Core
314                  if (!CreateHandlerForNode(node)) { xmltv_logger.Verbose.Debug.WriteLine("Unable to create handler for node: '{0}'", node.Name.ToString()); }                  if (!CreateHandlerForNode(node)) { xmltv_logger.Verbose.Debug.WriteLine("Unable to create handler for node: '{0}'", node.Name.ToString()); }
315                  node_index++;                  node_index++;
316                  progress = 100.0 * (node_index / total_nodes);                  progress = 100.0 * (node_index / total_nodes);
317                  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)));
318                  Application.DoEvents();                  Application.DoEvents();
319              }              }
320          }          }

Legend:
Removed from v.120  
changed lines
  Added in v.189

  ViewVC Help
Powered by ViewVC 1.1.22