/[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/13 14:03:47	129
+++ trunk/xmltv_parser/main.cs	2013/03/13 14:39:08	130
@@ -195,6 +195,7 @@
                 CreatControlsFromType(data_type);
                 //XMLTV.CreateSorterFromDataSource(ref datasource, "title");
                 dataGrid.DataSource = datasource;
+                flow_datagrid_sort.Enabled = true;
             }
             catch (Exception ex) { gLog.Error.WriteLine(ex.ToString()); }
         }
@@ -243,8 +244,46 @@
         {
             gLog.Warn.WriteLine("No controls have been defined for: {0}", data_type.Name);
         }
+        #endregion     
+
+
+        #region Column Sorting Support
+        private void btnResetSort_Click(object sender, EventArgs e)
+        {
+            Type data_type;
+            object datasource = XMLTV.CreateBindingSourceFromData(XMLTV.GetPrograms(), out data_type);
+            dataGrid.DataSource = datasource;
+        }
+        private void btnSortChannelName_Click(object sender, EventArgs e)
+        {
+            object data = dataGrid.DataSource;
+        }
+
+        private void btnSortStart_Click(object sender, EventArgs e)
+        {
+            object data = dataGrid.DataSource;
+        }
+        private void btnSortStop_Click(object sender, EventArgs e)
+        {
+            object data = dataGrid.DataSource;
+        }
+        private void btnSortTitle_Click(object sender, EventArgs e)
+        {
+            object data = dataGrid.DataSource;
+        }
+        private void btnSortSubTitle_Click(object sender, EventArgs e)
+        {
+            object data = dataGrid.DataSource;
+            XMLTV.CreateSorterFromDataSource(ref data, "subtitle");
+            dataGrid.DataSource = data;
+        }
+        private void btnSortDescription_Click(object sender, EventArgs e)
+        {
+            object data = dataGrid.DataSource;
+        }
         #endregion
 
+       
     }
 }
 

 

  ViewVC Help
Powered by ViewVC 1.1.22