/[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 87 by william, Sat Mar 9 14:33:18 2013 UTC revision 88 by william, Sat Mar 9 14:52:10 2013 UTC
# Line 137  namespace xmltv_parser Line 137  namespace xmltv_parser
137    
138          void LoadXMLTVShcedule(string schedule_xml)          void LoadXMLTVShcedule(string schedule_xml)
139          {          {
             //XMLTV.CreateInstance(schedule_xml, new EventHandler<CancelEventArgs>(xmltv_cancelevent));  
140              XMLTV.CreateInstance(schedule_xml, new EventHandler<EventArgs>(XMLTV_OnInstanceCreated));              XMLTV.CreateInstance(schedule_xml, new EventHandler<EventArgs>(XMLTV_OnInstanceCreated));
             //XMLTV.OnInstanceCreated += new EventHandler<EventArgs>(XMLTV_OnInstanceCreated);  
141          }          }
142    
143          void XMLTV_OnInstanceCreated(object sender, EventArgs e)          void XMLTV_OnInstanceCreated(object sender, EventArgs e)
144          {          {
145              //ReportProgress(0);              ReportProgress(0);
146              //var instance = XMLTV.GetInstance();              var instance = XMLTV.GetInstance();
147              //if (instance != null)              if (instance != null)
148              //{              {
149              //    var program_count = instance.Programs.Count;                  var program_count = instance.Programs.Count;
150              //    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());
151              //    //Programs = program_list(0, program_count).ToList();                  //Programs = program_list(0, program_count).ToList();
152              //    Programs = new List<IXMLTVProgram>(program_list.ToArray());                  Programs = new List<IXMLTVProgram>(program_list.ToArray());
153              //}              }
154              //CreateControls();              CreateControls();
155          }          }
156    
157    

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

  ViewVC Help
Powered by ViewVC 1.1.22