91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 209.74 KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2024-07-21
  • 語言: C#
  • 標簽: C#??

資源簡介

用C#寫的圖書管理系統,并帶有部分注釋,數據庫是
access數據庫,讀者可以自己更改

資源截圖

代碼片段和文件信息

using?System;
using?System.Data.OleDb;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;

namespace?tsgl
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????}

????????OleDbConnection?myCon?=?null;
????????OleDbDataReader?myReader?=?null;
????????OleDbCommand?myCom?=?new?OleDbCommand();

????????private?void?access()
????????{
????????????try
????????????{
????????????????string?myConStr?=?“Provider=Microsoft.Jet.OlEDB.4.0;“;
????????????????myConStr?+=?“Data?Source=yg.mdb;“;
????????????????myCon?=?new?OleDbConnection(myConStr);
????????????????myCon.Open();
????????????}
????????????catch?(Exception?oe)
????????????{
????????????????MessageBox.Show(oe.Message?“Error“);
????????????}
????????}

????????private?void?Form1_Load(object?sender?EventArgs?e)
????????{
????????????this.AcceptButton?=?this.button1;
????????????this.button1.DialogResult?=?DialogResult.OK;
????????????textBox1.Focus();
????????}

????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????try
????????????{
????????????????if?(textBox1.Text?==?““?||?textBox2.Text?==?““)
????????????????{
????????????????????MessageBox.Show(“用戶名或者密碼不能為空!“?“標題“);
????????????????????return;
????????????????}
????????????????String?FindSQL?=?“select?*?from?yh?where?用戶=‘“?+?textBox1.Text?+?“‘and?密碼=‘“?+?textBox2.Text?+?“‘“;
????????????????access();
????????????????myCom.CommandType?=?CommandType.Text;
????????????????myCom.CommandText?=?FindSQL;
????????????????myCom.Connection?=?myCon;
????????????????myReader?=?myCom.ExecuteReader();
????????????????if?(myReader.HasRows)
????????????????{
????????????????????myReader.Read();
????????????????????switch?(myReader.GetInt32(0))
????????????????????{
????????????????????????case?10:
????????????????????????????人員管理ToolStripMenuItem.Enabled?=?true;
????????????????????????????label1.Text?=?“你是系統管理員,擁有所有權限!“;?goto?default;
????????????????????????default:
????????????????????????????圖書管理ToolStripMenuItem.Enabled?=?true;
????????????????????????????幫助ToolStripMenuItem.Enabled?=?true;
????????????????????????????label2.Visible?=?false;
????????????????????????????label3.Visible?=?false;
????????????????????????????textBox1.Visible?=?false;
????????????????????????????textBox2.Visible?=?false;
????????????????????????????button1.Visible?=?false;
????????????????????????????textBox3.Visible?=?false;
????????????????????????????textBox4.Visible?=?false;
????????????????????????????break;
????????????????????}
????????????????}
????????????????else
????????????????????MessageBox.Show(“用戶名或者密碼錯誤!“?“提示“);
????????????}
????????????catch?(Exception?oe)
????????????{
????????????????MessageBox.Show(oe.Message?“Error“);
????????????}
????????}

????????private?void?button2_

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????1172??2009-06-09?18:24??圖書管理系統\UpgradeLog.xml

?????文件????????944??2009-06-09?18:24??圖書管理系統\圖書管理系統.sln

????..A..H.?????34816??2009-06-18?00:18??圖書管理系統\圖書管理系統.suo

?????文件???????3348??2009-06-09?18:24??圖書管理系統\_UpgradeReport_Files\UpgradeReport.css

?????文件??????12505??2008-01-11?01:25??圖書管理系統\_UpgradeReport_Files\UpgradeReport.xslt

?????文件?????????69??2009-06-09?18:24??圖書管理系統\_UpgradeReport_Files\UpgradeReport_Minus.gif

?????文件?????????71??2009-06-09?18:24??圖書管理系統\_UpgradeReport_Files\UpgradeReport_Plus.gif

????..A.SH.??????4608??2009-07-06?15:23??圖書管理系統\_UpgradeReport_Files\Thumbs.db

?????目錄??????????0??2009-07-06?15:23??圖書管理系統\_UpgradeReport_Files

?????文件????????408??2009-06-09?18:55??圖書管理系統\圖書管理系統\app.config

?????文件???????5717??2009-06-18?00:18??圖書管理系統\圖書管理系統\Form1.cs

?????文件??????15299??2009-06-18?00:18??圖書管理系統\圖書管理系統\Form1.Designer.cs

?????文件???????6012??2009-06-18?00:18??圖書管理系統\圖書管理系統\Form1.resx

?????文件???????8942??2009-06-18?00:18??圖書管理系統\圖書管理系統\Form2.cs

?????文件??????23111??2009-06-18?00:18??圖書管理系統\圖書管理系統\Form2.Designer.cs

?????文件???????6222??2009-06-18?00:18??圖書管理系統\圖書管理系統\Form2.resx

?????文件???????9325??2009-01-01?12:52??圖書管理系統\圖書管理系統\Form3.cs

?????文件??????13901??2009-01-01?12:38??圖書管理系統\圖書管理系統\Form3.Designer.cs

?????文件???????5814??2009-01-01?12:12??圖書管理系統\圖書管理系統\Form3.resx

?????文件???????1319??2009-01-01?12:53??圖書管理系統\圖書管理系統\Form4.cs

?????文件???????3079??2009-01-01?12:38??圖書管理系統\圖書管理系統\Form4.Designer.cs

?????文件???????5814??2009-01-01?12:13??圖書管理系統\圖書管理系統\Form4.resx

?????文件???????8818??2009-01-01?12:53??圖書管理系統\圖書管理系統\Form5.cs

?????文件??????14062??2009-01-01?12:41??圖書管理系統\圖書管理系統\Form5.Designer.cs

?????文件???????5814??2009-01-01?12:41??圖書管理系統\圖書管理系統\Form5.resx

?????文件??????10730??2009-01-01?12:53??圖書管理系統\圖書管理系統\Form6.cs

?????文件??????13034??2009-01-01?12:48??圖書管理系統\圖書管理系統\Form6.Designer.cs

?????文件???????5814??2009-01-01?12:48??圖書管理系統\圖書管理系統\Form6.resx

?????文件???????1209??2009-01-01?12:53??圖書管理系統\圖書管理系統\Form7.cs

?????文件???????2812??2009-01-01?12:50??圖書管理系統\圖書管理系統\Form7.Designer.cs

............此處省略62個文件信息

評論

共有 條評論