/[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/10 17:43:20	119
+++ trunk/xmltv_parser/main.cs	2013/03/10 18:30:13	121
@@ -26,7 +26,7 @@
         {
             InitializeComponent();
             ListViewSorter Sorter = new ListViewSorter();
-            lstPrograms.ListViewItemSorter = Sorter;
+            //lstPrograms.ListViewItemSorter = Sorter;
             string log_path = Application.StartupPath;
             string log_filename = string.Format("{0}.log", typeof(main).Assembly.GetName().Name);
             gLog.CreateLog(string.Format(@"{0}\{1}", log_path, log_filename), false, LogLevel.kLogLevel_All_NoProgress, new EventHandler<LoggerOnFlushEventArgs>(Log_OnFlush));
@@ -213,7 +213,11 @@
 
             //lstPrograms.Items.AddRange(items.ToArray());
 
-            
+            //var source = new BindingSource();
+            //source.DataSource = XMLTV.GetPrograms();
+            //dataGrid.DataSource = source;
+
+            dataGrid.DataSource = XMLTV.CreateBindingSourceForData(XMLTV.GetSource());
 
         }
 
@@ -221,7 +225,7 @@
         {
             try
             {
-                lstPrograms.Items.Clear();
+                //lstPrograms.Items.Clear();
                 //LoadXMLTVShcedule("20130307_continuum_schedule.xml");
                 var result = xmltv_file_chooser.ShowDialog();
                 if (result != DialogResult.OK) return;

 

  ViewVC Help
Powered by ViewVC 1.1.22