/[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 129 by william, Wed Mar 13 14:03:47 2013 UTC revision 130 by william, Wed Mar 13 14:39:08 2013 UTC
# Line 195  namespace xmltv_parser Line 195  namespace xmltv_parser
195                  CreatControlsFromType(data_type);                  CreatControlsFromType(data_type);
196                  //XMLTV.CreateSorterFromDataSource(ref datasource, "title");                  //XMLTV.CreateSorterFromDataSource(ref datasource, "title");
197                  dataGrid.DataSource = datasource;                  dataGrid.DataSource = datasource;
198                    flow_datagrid_sort.Enabled = true;
199              }              }
200              catch (Exception ex) { gLog.Error.WriteLine(ex.ToString()); }              catch (Exception ex) { gLog.Error.WriteLine(ex.ToString()); }
201          }          }
# Line 243  namespace xmltv_parser Line 244  namespace xmltv_parser
244          {          {
245              gLog.Warn.WriteLine("No controls have been defined for: {0}", data_type.Name);              gLog.Warn.WriteLine("No controls have been defined for: {0}", data_type.Name);
246          }          }
247            #endregion    
248    
249    
250            #region Column Sorting Support
251            private void btnResetSort_Click(object sender, EventArgs e)
252            {
253                Type data_type;
254                object datasource = XMLTV.CreateBindingSourceFromData(XMLTV.GetPrograms(), out data_type);
255                dataGrid.DataSource = datasource;
256            }
257            private void btnSortChannelName_Click(object sender, EventArgs e)
258            {
259                object data = dataGrid.DataSource;
260            }
261    
262            private void btnSortStart_Click(object sender, EventArgs e)
263            {
264                object data = dataGrid.DataSource;
265            }
266            private void btnSortStop_Click(object sender, EventArgs e)
267            {
268                object data = dataGrid.DataSource;
269            }
270            private void btnSortTitle_Click(object sender, EventArgs e)
271            {
272                object data = dataGrid.DataSource;
273            }
274            private void btnSortSubTitle_Click(object sender, EventArgs e)
275            {
276                object data = dataGrid.DataSource;
277                XMLTV.CreateSorterFromDataSource(ref data, "subtitle");
278                dataGrid.DataSource = data;
279            }
280            private void btnSortDescription_Click(object sender, EventArgs e)
281            {
282                object data = dataGrid.DataSource;
283            }
284          #endregion          #endregion
285    
286          
287      }      }
288  }  }
289    

Legend:
Removed from v.129  
changed lines
  Added in v.130

  ViewVC Help
Powered by ViewVC 1.1.22