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

--- trunk/xmltv_parser/main.cs	2013/03/09 14:52:10	88
+++ trunk/xmltv_parser/main.cs	2013/03/09 17:42:34	90
@@ -147,7 +147,7 @@
             if (instance != null)
             {
                 var program_count = instance.Programs.Count;
-                var program_list = instance.Programs.ToList().OrderBy(s => s.GetProperty(XMLTVConstants.Programs.ProgramStart).ToString());
+                var program_list = instance.Programs.ToList().OrderBy(s => s.Properties[XMLTVConstants.Programs.ProgramStart].ToString());
                 //Programs = program_list(0, program_count).ToList();
                 Programs = new List<IXMLTVProgram>(program_list.ToArray());
             }
@@ -175,15 +175,15 @@
             {
                 IXMLTVChannel Channel = null;
                 var instance = XMLTV.GetInstance();
-                var id = program.GetProperty(XMLTVConstants.Programs.ProgramChannelId).ToString();
+                var id = program.Properties[XMLTVConstants.Programs.ProgramChannelId].ToString();
                 Channel = instance.Channels.Find(m => m.Id == id);
                 ListViewItem li = new ListViewItem(string.Format("{0} {1}", Channel.Number, Channel.CallSign));
                 li.Tag = program;
-                li.SubItems.Add(new ListViewItem.ListViewSubItem(li, program.GetProperty(XMLTVConstants.Programs.ProgramTitle).ToString()));
-                li.SubItems.Add(new ListViewItem.ListViewSubItem(li, program.GetProperty(XMLTVConstants.Programs.ProgramSubTitle).ToString()));
-                li.SubItems.Add(new ListViewItem.ListViewSubItem(li, program.GetProperty(XMLTVConstants.Programs.ProgramDescription).ToString()));
-                li.SubItems.Add(new ListViewItem.ListViewSubItem(li, ((DateTime)program.GetProperty(XMLTVConstants.Programs.ProgramStart)).ToString("yyyy/MM/dd hh:mm tt")));
-                li.SubItems.Add(new ListViewItem.ListViewSubItem(li, ((DateTime)program.GetProperty(XMLTVConstants.Programs.ProgramStop)).ToString("yyyy/MM/dd hh:mm tt")));
+                li.SubItems.Add(new ListViewItem.ListViewSubItem(li, program.Properties[XMLTVConstants.Programs.ProgramTitle].ToString()));
+                li.SubItems.Add(new ListViewItem.ListViewSubItem(li, program.Properties[XMLTVConstants.Programs.ProgramSubTitle].ToString()));
+                li.SubItems.Add(new ListViewItem.ListViewSubItem(li, program.Properties[XMLTVConstants.Programs.ProgramDescription].ToString()));
+                li.SubItems.Add(new ListViewItem.ListViewSubItem(li, ((DateTime)program.Properties[XMLTVConstants.Programs.ProgramStart]).ToString("yyyy/MM/dd hh:mm tt")));
+                li.SubItems.Add(new ListViewItem.ListViewSubItem(li, ((DateTime)program.Properties[XMLTVConstants.Programs.ProgramStop]).ToString("yyyy/MM/dd hh:mm tt")));
                 //lstPrograms.Items.Add(li);
                 items.Add(li);
             }

 

  ViewVC Help
Powered by ViewVC 1.1.22