• 大小: 0.38M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 系统  管理  管理系统  

资源简介

【调试步骤】

1. 修改app.config中的ConStr节点,将数据库的路径改为你本地正确的路径

2. visual studio 运行此项目 即可看到如下截图

登陆账号:admin

登陆密码:1232

资源截图

代码片段和文件信息

using System;
using System.Configuration;
using System.Data.OleDb;
using System.Windows.Forms;

namespace BookManagement
{
    public partial class AddBook : Form
    {
        public int IsOk = 0;
        public AddBook()
        {
            InitializeComponent();
        }

        private void btnClear_Click(object sender EventArgs e)
        {
            txtName.Text = ““;
            txtPrices.Text = ““;
        }

        /// 
        /// 添加新图书
        /// 

        /// 
        /// 
        private void button2_Click(object sender EventArgs e)
        {
            ///验证图书名称
            if (string.IsNullOrEmpty(txtName.Text))
            {
                MessageBox.Show(“图书名称是

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-12-26 22:06  BookManagement\
     目录           0  2018-12-26 22:06  BookManagement\.vs\
     目录           0  2018-12-26 22:06  BookManagement\.vs\BookManagement\
     目录           0  2018-12-26 22:06  BookManagement\.vs\BookManagement\v15\
     文件       67584  2018-12-26 21:59  BookManagement\.vs\BookManagement\v15\.suo
     目录           0  2018-12-26 22:06  BookManagement\.vs\BookManagement\v15\Server\
     目录           0  2018-12-26 22:06  BookManagement\.vs\BookManagement\v15\Server\sqlite3\
     文件           0  2018-12-26 12:35  BookManagement\.vs\BookManagement\v15\Server\sqlite3\db.lock
     文件      626688  2018-12-26 20:55  BookManagement\.vs\BookManagement\v15\Server\sqlite3\storage.ide
     文件       32768  2018-12-26 18:57  BookManagement\.vs\BookManagement\v15\Server\sqlite3\storage.ide-shm
     文件     4132392  2018-12-26 21:59  BookManagement\.vs\BookManagement\v15\Server\sqlite3\storage.ide-wal
     目录           0  2018-12-26 22:06  BookManagement\BookManagement\
     文件        7217  2018-12-26 17:02  BookManagement\BookManagement\AddBook.Designer.cs
     文件        2400  2018-12-26 21:57  BookManagement\BookManagement\AddBook.cs
     文件        5817  2018-12-26 17:02  BookManagement\BookManagement\AddBook.resx
     文件         344  2018-12-26 16:47  BookManagement\BookManagement\App.config
     文件        4252  2018-12-26 16:51  BookManagement\BookManagement\BookManagement.csproj
     文件        9821  2018-12-26 21:50  BookManagement\BookManagement\Books.Designer.cs
     文件        5619  2018-12-26 21:59  BookManagement\BookManagement\Books.cs
     文件        6553  2018-12-26 21:50  BookManagement\BookManagement\Books.resx
     文件        6076  2018-12-26 12:57  BookManagement\BookManagement\Main.Designer.cs
     文件        3365  2018-12-26 21:56  BookManagement\BookManagement\Main.cs
     文件        5817  2018-12-26 12:57  BookManagement\BookManagement\Main.resx
     文件         571  2018-12-26 21:03  BookManagement\BookManagement\Program.cs
     目录           0  2018-12-26 22:06  BookManagement\BookManagement\Properties\
     文件        1326  2018-12-26 12:34  BookManagement\BookManagement\Properties\AssemblyInfo.cs
     文件        2841  2018-12-26 12:34  BookManagement\BookManagement\Properties\Resources.Designer.cs
     文件        5612  2018-12-26 12:34  BookManagement\BookManagement\Properties\Resources.resx
     文件        1101  2018-12-26 12:34  BookManagement\BookManagement\Properties\Settings.Designer.cs
     文件         249  2018-12-26 12:34  BookManagement\BookManagement\Properties\Settings.settings
     目录           0  2018-12-26 22:06  BookManagement\BookManagement\bin\
............此处省略25个文件信息

评论

共有 条评论