Exemple #1
0
 private void initDB()
 {
     DB = new Curriculum(DBConnectionString);
     if (DB.DatabaseExists() == false)
     {
         // Create the local database.
         DB.CreateDatabase();
         //MessageBox.Show("欢迎使用快捷课表!以下是简短使用说明\n点击编辑按钮,出现编辑“编辑模式”字样时,点击单元格可修改内容,再次点击编辑按钮退出编辑模式。\n点击删除按钮,同理可删除单元格内容。");
         // Prepopulate the categories.
         //DB.Categories.InsertOnSubmit(new ToDoCategory { Name = "Home" });
         // Save categories to the database.
         //DB.SubmitChanges();
     }
     //DB.DeleteDatabase();
     //DB.CreateDatabase();
     App.DB_Context = DB;
 }
Exemple #2
0
 private void initDB()
 {
     DB = new Curriculum(DBConnectionString);
     if (DB.DatabaseExists() == false)
         {
             // Create the local database.
             DB.CreateDatabase();
             //MessageBox.Show("欢迎使用快捷课表!以下是简短使用说明\n点击编辑按钮,出现编辑“编辑模式”字样时,点击单元格可修改内容,再次点击编辑按钮退出编辑模式。\n点击删除按钮,同理可删除单元格内容。");
             // Prepopulate the categories.
             //DB.Categories.InsertOnSubmit(new ToDoCategory { Name = "Home" });
             // Save categories to the database.
             //DB.SubmitChanges();
         }
     //DB.DeleteDatabase();
     //DB.CreateDatabase();
     App.DB_Context = DB;
 }