/[xmltv_parser]/trunk/xmltv_parser/main.cs
ViewVC logotype

Diff of /trunk/xmltv_parser/main.cs

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

revision 78 by william, Sat Mar 9 10:27:39 2013 UTC revision 79 by william, Sat Mar 9 11:40:15 2013 UTC
# Line 14  using libxmltv.Interfaces; Line 14  using libxmltv.Interfaces;
14  using System.IO;  using System.IO;
15  using System.Runtime.Serialization.Formatters.Binary;  using System.Runtime.Serialization.Formatters.Binary;
16  using System.Threading;  using System.Threading;
17    using System.Diagnostics;
18    
19  namespace xmltv_parser  namespace xmltv_parser
20  {  {
# Line 55  namespace xmltv_parser Line 56  namespace xmltv_parser
56    
57          private void ReportProgress(int progress)          private void ReportProgress(int progress)
58          {          {
59              if (this.InvokeRequired)              try
60              {              {
61                  try                  if (this.InvokeRequired)
62                  {                  {
63                      this.Invoke((Action)(delegate { ReportProgress(progress); }));                      try
64                        {
65                            this.Invoke((Action)(delegate { ReportProgress(progress); }));
66                        }
67                        catch { }
68                        return;
69                  }                  }
70                  catch { }                  progress_status.Value = progress;
                 return;  
71              }              }
72              progress_status.Value = progress;              catch (Exception ex) { Debug.WriteLine(ex.ToString()); }
73          }          }
74          private void gLog_ReportProgress(object sender, ReportProgressEventArgs e) { ReportProgress(e.Progress); }          private void gLog_ReportProgress(object sender, ReportProgressEventArgs e) { ReportProgress(e.Progress); }
75    

Legend:
Removed from v.78  
changed lines
  Added in v.79

  ViewVC Help
Powered by ViewVC 1.1.22