/[xmltv_parser]/trunk/GBPVRProgramDatabaseFixer/Program.cs
ViewVC logotype

Diff of /trunk/GBPVRProgramDatabaseFixer/Program.cs

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

--- trunk/GBPVRProgramDatabaseFixer/Program.cs	2013/03/14 17:10:09	155
+++ trunk/GBPVRProgramDatabaseFixer/Program.cs	2013/03/14 19:25:17	156
@@ -12,6 +12,7 @@
 {
     class Program
     {
+        static SQLLITE sqlite;
         static string XMLTV_FILE = "";
         static string GBPVR_DATABASE = "";
 
@@ -83,8 +84,12 @@
                 }
             }
 
-            LoadXMLTVFile();
+            //LoadXMLTVFile();
             LoadGBPVRDatabase();
+
+
+            var programs = sqlite.Programs;
+            var recordings = sqlite.Recordings;
         }
 
         static void ConsoleOverwritePreviosLine(string format, params object[] args)
@@ -160,8 +165,10 @@
                 return;
             }
 
-
+            sqlite = new SQLLITE(fi_GBPVRDATABASE.FullName, new EventHandler<EventArgs>(SQLLITE_OnInstanceCreated));
+            while (!SQLLIST_INSTANCE_CREATED) { Application.DoEvents(); }
             LOADING_GBPVR_DATABASE = false;
         }
+        static void SQLLITE_OnInstanceCreated(object sender, EventArgs e) { SQLLIST_INSTANCE_CREATED = true; }
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22