/[xmltv_parser]/trunk/libxmltv/Core/XMLTVSource.cs
ViewVC logotype

Diff of /trunk/libxmltv/Core/XMLTVSource.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/libxmltv/Core/XMLTVSource.cs	2013/03/10 18:19:12	120
+++ trunk/libxmltv/Core/XMLTVSource.cs	2013/03/10 18:30:13	121
@@ -13,6 +13,13 @@
     [Serializable]
     internal class XMLTVSource : XMLTVBase<XMLTVRuntimeInstance>, IXMLTVSource, IDisposable//, ICloneable
     {
+        //static private List<string> known_columns;
+        //static XMLTVSource()
+        //{
+        //    known_columns.Add("Source Name");
+        //    known_columns.Add("Generator Name");
+        //    known_columns.Add("Generator Url");
+        //}
        
         private Dictionary<string, string> entries = new Dictionary<string, string>();
         //internal static void CreateInstance(XMLTVRuntimeInstance xmltv)
@@ -31,7 +38,14 @@
 
         public object CreateBindableDataSource()
         {
-            throw new NotImplementedException();
+            object bindable = new object();
+
+            List<PropertyValuePair> list = new List<PropertyValuePair>();
+            list.Add(new PropertyValuePair("Source Name", SourceName));
+            list.Add(new PropertyValuePair("Generator Name", GeneratorName));
+            list.Add(new PropertyValuePair("Generator Url", GeneratorUrl));
+            bindable = list;
+            return bindable;
         }
 
         public XMLTVSource()

 

  ViewVC Help
Powered by ViewVC 1.1.22