/[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 86 by william, Sat Mar 9 13:51:58 2013 UTC revision 87 by william, Sat Mar 9 14:33:18 2013 UTC
# Line 64  namespace xmltv_parser Line 64  namespace xmltv_parser
64                  }                  }
65                  catch { }                  catch { }
66                  return;                  return;
67              }              }          
             if (this.IsDisposed) { return; }  
68              progress_status.Value = progress;              progress_status.Value = progress;
69          }          }
70          private void gLog_ReportProgress(object sender, ReportProgressEventArgs e) { ReportProgress(e.Progress); }          private void gLog_ReportProgress(object sender, ReportProgressEventArgs e) { ReportProgress(e.Progress); }
# Line 145  namespace xmltv_parser Line 144  namespace xmltv_parser
144    
145          void XMLTV_OnInstanceCreated(object sender, EventArgs e)          void XMLTV_OnInstanceCreated(object sender, EventArgs e)
146          {          {
147              ReportProgress(0);              //ReportProgress(0);
148              var instance = XMLTV.GetInstance();              //var instance = XMLTV.GetInstance();
149              if (instance != null)              //if (instance != null)
150              {              //{
151                  var program_count = instance.Programs.Count;              //    var program_count = instance.Programs.Count;
152                  var program_list = instance.Programs.ToList().OrderBy(s => s.GetProperty(XMLTVConstants.Programs.ProgramStart).ToString());              //    var program_list = instance.Programs.ToList().OrderBy(s => s.GetProperty(XMLTVConstants.Programs.ProgramStart).ToString());
153                  //Programs = program_list(0, program_count).ToList();              //    //Programs = program_list(0, program_count).ToList();
154                  Programs = new List<IXMLTVProgram>(program_list.ToArray());              //    Programs = new List<IXMLTVProgram>(program_list.ToArray());
155              }              //}
156              CreateControls();              //CreateControls();
157          }          }
158    
159    

Legend:
Removed from v.86  
changed lines
  Added in v.87

  ViewVC Help
Powered by ViewVC 1.1.22