/[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 157 by william, Thu Mar 14 19:36:01 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 85  namespace GBPVRProgramDatabaseFixer Line 86  namespace GBPVRProgramDatabaseFixer
86    
87              LoadXMLTVFile();              LoadXMLTVFile();
88              LoadGBPVRDatabase();              LoadGBPVRDatabase();
89                PerformDatabaseProcessing();      
90          }          }
91    
92          static void ConsoleOverwritePreviosLine(string format, params object[] args)          static void ConsoleOverwritePreviosLine(string format, params object[] args)
# Line 160  namespace GBPVRProgramDatabaseFixer Line 162  namespace GBPVRProgramDatabaseFixer
162                  return;                  return;
163              }              }
164    
165                sqlite = new SQLLITE(fi_GBPVRDATABASE.FullName, new EventHandler<EventArgs>(SQLLITE_OnInstanceCreated));
166                while (!SQLLIST_INSTANCE_CREATED) { Application.DoEvents(); }
167              LOADING_GBPVR_DATABASE = false;              LOADING_GBPVR_DATABASE = false;
168          }          }
169            static void SQLLITE_OnInstanceCreated(object sender, EventArgs e) { SQLLIST_INSTANCE_CREATED = true; }
170    
171    
172    
173            static void PerformDatabaseProcessing()
174            {
175                var programs = sqlite.Programs;
176                var recordings = sqlite.Recordings;
177            }
178      }      }
179  }  }

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

  ViewVC Help
Powered by ViewVC 1.1.22