/[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/09 14:52:10	88
+++ 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)
@@ -27,6 +34,20 @@
         //    this.GeneratorName = generatorname;
         //    this.GeneratorUrl = generatorurl;
         //}
+
+
+        public object CreateBindableDataSource()
+        {
+            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()
             : base(null, XMLTVConstants.Root.RootElement) 
         {
@@ -112,6 +133,6 @@
         //public object Clone()
         //{
         //    return new XMLTVSource(this.SourceName, this.GeneratorName, this.GeneratorUrl);
-        //}
+        //}   
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22