예제 #1
0
파일: MainForm.cs 프로젝트: ciwatson/MPAid
 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!");
     }
 }
예제 #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!");
     }
 }