Update README.md and add runtime images
@@ -3,3 +3,6 @@
|
||||
################################################################################
|
||||
|
||||
/.vs
|
||||
/AuditoriumMS/.vs/AuditoriumMS/v16
|
||||
/AuditoriumMS/bin/Debug
|
||||
/AuditoriumMS/obj
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Data;
|
||||
using System.Data.OleDb;
|
||||
using System.IO;
|
||||
|
||||
namespace AuditoriumMS
|
||||
{
|
||||
@@ -13,7 +11,7 @@ namespace AuditoriumMS
|
||||
public class Access
|
||||
{
|
||||
// 这里改成解决方案目录下那个accdb文件 ↓
|
||||
static string DbPath = @"F:\C#\培优礼堂票务管理系统\AuditoriumMS" + @"\DbTicketing.accdb";
|
||||
static string DbPath = Path.Combine(Environment.CurrentDirectory, "DbTicketing.accdb");
|
||||
OleDbConnection oleDb = new OleDbConnection(string.Format(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source={0}", DbPath));
|
||||
// 私有构造函数,单例实现
|
||||
private Access()
|
||||
|
||||
|
After Width: | Height: | Size: 73 KiB |
|
After Width: | Height: | Size: 33 KiB |
|
After Width: | Height: | Size: 56 KiB |
|
After Width: | Height: | Size: 58 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 31 KiB |
|
After Width: | Height: | Size: 36 KiB |
|
After Width: | Height: | Size: 31 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 29 KiB |
|
After Width: | Height: | Size: 23 KiB |
|
After Width: | Height: | Size: 5.3 KiB |
@@ -1,2 +1,29 @@
|
||||
# AuditoriumMS
|
||||
礼堂票务管理系统 使用C# WinForm编写 使用MS Access作为数据库
|
||||
礼堂票务管理系统
|
||||
|
||||
使用C# WinForm编写
|
||||
|
||||
使用MS Access作为数据库
|
||||
|
||||
|
||||
> 如果在运行时报错:**未在本地计算机上注册Microsoft.ACE.OLEDB.12.0**
|
||||
> 
|
||||
>
|
||||
> 可能是因为没有安装数据访问组件,需要安装相应版本的数据访问组件
|
||||
>
|
||||
> 请在这里下载[Microsoft 2007 Office System 驱动程序](http://download.microsoft.com/download/7/0/3/703ffbcb-dc0c-4e19-b0da-1463960fdcdb/AccessDatabaseEngine.exe)
|
||||
|
||||
以下是程序运行效果图
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||