/[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

revision 155 by william, Thu Mar 14 17:10:09 2013 UTC revision 156 by william, Thu Mar 14 19:25:17 2013 UTC
# Line 12  namespace GBPVRProgramDatabaseFixer Line 12  namespace GBPVRProgramDatabaseFixer
12  {  {
13      class Program      class Program
14      {      {
15            static SQLLITE sqlite;
16          static string XMLTV_FILE = "";          static string XMLTV_FILE = "";
17          static string GBPVR_DATABASE = "";          static string GBPVR_DATABASE = "";
18    
# Line 83  namespace GBPVRProgramDatabaseFixer Line 84  namespace GBPVRProgramDatabaseFixer
84                  }                  }
85              }              }
86    
87              LoadXMLTVFile();              //LoadXMLTVFile();
88              LoadGBPVRDatabase();              LoadGBPVRDatabase();
89    
90    
91                var programs = sqlite.Programs;
92                var recordings = sqlite.Recordings;
93          }          }
94    
95          static void ConsoleOverwritePreviosLine(string format, params object[] args)          static void ConsoleOverwritePreviosLine(string format, params object[] args)
# Line 160  namespace GBPVRProgramDatabaseFixer Line 165  namespace GBPVRProgramDatabaseFixer
165                  return;                  return;
166              }              }
167    
168                sqlite = new SQLLITE(fi_GBPVRDATABASE.FullName, new EventHandler<EventArgs>(SQLLITE_OnInstanceCreated));
169                while (!SQLLIST_INSTANCE_CREATED) { Application.DoEvents(); }
170              LOADING_GBPVR_DATABASE = false;              LOADING_GBPVR_DATABASE = false;
171          }          }
172            static void SQLLITE_OnInstanceCreated(object sender, EventArgs e) { SQLLIST_INSTANCE_CREATED = true; }
173      }      }
174  }  }

Legend:
Removed from v.155  
changed lines
  Added in v.156

  ViewVC Help
Powered by ViewVC 1.1.22