Esempio n. 1
0
 private void InitializeDB()
 {
     try
     {
         this.DBModel = new MPAidModel();
         this.DBModel.Database.Initialize(false);
         this.DBModel.Recording.Load();
         this.DBModel.Speaker.Load();
         this.DBModel.Category.Load();
         this.DBModel.Word.Load();
         this.DBModel.SingleFile.Load();
     }
     catch (Exception exp)
     {
         MessageBox.Show(exp.Message, "Database linking error!");
     }
 }
Esempio n. 2
0
 private void InitializeDB()
 {
     try
     {
         this.DBModel = new MPAidModel();
         this.DBModel.Database.Initialize(false);
         this.DBModel.Recording.Load();
         this.DBModel.Speaker.Load();
         this.DBModel.Category.Load();
         this.DBModel.Word.Load();
         this.DBModel.SingleFile.Load();
     }
     catch (Exception exp)
     {
         MessageBox.Show(exp.Message, "Database linking error!");
     }
 }