Exemple #1
0
 // Code to execute when the application is launching (eg, from Start)
 // This code will not execute when the application is reactivated
 private void Application_Launching(object sender, LaunchingEventArgs e)
 {
     if (LatestShows == null)
     {
         LatestShows = new Listings();
     }
     if (Torrents == null)
     {
         Torrents = new Torrents();
     }
     if (Shows == null)
     {
         Shows = new Shows();
     }
     if (db == null)
     {
         db = new DC();
     }
     if (!db.DatabaseExists())
     {
         db.CreateDatabase();
     }
     //pre load shows
     //if (!App.Shows.IsDataLoaded) {
     //    App.Shows.LoadData(false);
     //}
 }