資源簡介
基于C/S的C#編程,這個軟件在學期末得到85分,還算好。數據庫為aceess

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;
using?System.Data.SqlClient;
using?System.Data.OleDb;
namespace?_1
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????public?static?string?t1;
????????private?void?linkLabel1_linkClicked(object?sender?linkLabellinkClickedEventArgs?e)
????????{
????????????this.Hide();
????????????Form2?f2?=?new?Form2();
????????????f2.ShowDialog();
????????}
????????private?void?button2_Click(object?sender?EventArgs?e)
????????{
????????????Close();
????????}
????????public?void?button1_Click(object?sender?EventArgs?e)
????????{
???????????
????????????if?(radioButton2.Checked)
????????????{
????????????????
????????????????string?strConnection?=?“Provider=Microsoft.Jet.OLEDB.4.0;data?source=haha.mdb“;
????????????????OleDbConnection?myConnection?=?new?OleDbConnection(strConnection);
????????????????myConnection.Open();
????????????????string?sql?=?“select?*?from?[up]?where??user=‘“?+?textBox1.Text?+?“‘and?ps=‘“?+?textBox2.Text?+?“‘“;????????????????????????????
????????????????OleDbCommand?myConmmand?=?new?OleDbCommand(sql?myConnection);
????????????????OleDbDataReader?odr?=?myConmmand.ExecuteReader();
???????????????
????????????????if?(odr.Read())
????????????????{
????????????????????????????t1?=?textBox1.Text;
????????????????????????????this.Hide();
????????????????????????????Form3?f3?=?new?Form3();
????????????????????????????f3.圖書信息管理ToolStripMenuItem.Enabled?=?false;
????????????????????????????f3.借閱查詢ToolStripMenuItem.Enabled?=?false;
????????????????????????????f3.button2.Enabled?=?false;
????????????????????????????f3.所有借閱查詢.Enabled?=?false;
????????????????????????????f3.借閱信息管理ToolStripMenuItem.Enabled?=?false;
????????????????????????????f3.ShowDialog();
????????????????????????????
???????????????????????????
?????????????????}
?????????????????else
???????????????????{
????????????????????System.Windows.Forms.MessageBox.Show(“用戶名或密碼不正確!“?“回答“
????????????????????MessageBoxButtons.OKCancel?MessageBoxIcon.Information);
????????????????????}
????????????????myConnection.Close();
??????????????????
????????????}
?????????????else?if?(radioButton1.Checked)
?????????????????{
????????????????????string?strConnection1?=?“Provider=Microsoft.Jet.OLEDB.4.0;data?source=haha.mdb“;
?????????????????????OleDbConnection?myConnection1?=?new?OleDbConnection(strConnection1);
?????????????????????myConnection1.Open();??
????????????????????????
????????????????????????
????????????????string?sql1?=?“select?*?from?[mp]?where??manager=‘“?+?textBox1.Text?+?“‘and?ps=‘“?+?textBox2.Text?+?“‘“;
????????????????OleDbCommand?myConmmand1?=?new?OleDbCommand(sql1?myConnection1);
????????????????OleDbDataReader
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2015-04-13?10:54??1\
?????目錄???????????0??2015-04-13?10:54??1\1\
?????文件????????1247??2013-06-24?20:03??1\1.sln
?????文件???????71168??2015-04-13?09:56??1\1.suo
?????文件???????13522??2014-11-08?13:14??1\1\1.csproj
?????文件?????????376??2013-06-24?19:46??1\1\app.config
?????目錄???????????0??2015-04-05?15:27??1\1\bin\
?????目錄???????????0??2015-04-05?15:27??1\1\bin\Debug\
?????目錄???????????0??2015-04-05?15:27??1\1\bin\x86\
?????目錄???????????0??2015-04-05?15:27??1\1\bin\x86\Debug\
?????文件?????????376??2013-06-24?19:46??1\1\bin\x86\Debug\1.exe.config
?????文件???????14848??2015-04-13?09:55??1\1\bin\x86\Debug\1.vshost.exe
?????文件?????????376??2013-06-24?19:46??1\1\bin\x86\Debug\1.vshost.exe.config
?????文件?????????490??2014-03-18?18:59??1\1\bin\x86\Debug\1.vshost.exe.manifest
?????文件????????5309??2014-11-10?21:08??1\1\Form1.cs
?????文件????????8306??2014-11-10?21:08??1\1\Form1.Designer.cs
?????文件????????5814??2014-11-10?21:08??1\1\Form1.resx
?????文件????????2373??2014-11-18?16:04??1\1\Form10.cs
?????文件???????11599??2014-11-18?16:04??1\1\Form10.Designer.cs
?????文件????????5814??2014-11-18?16:04??1\1\Form10.resx
?????文件????????5647??2014-11-18?15:36??1\1\Form11.cs
?????文件????????9465??2014-11-18?15:33??1\1\Form11.Designer.cs
?????文件????????5814??2014-11-18?15:33??1\1\Form11.resx
?????文件????????3976??2014-11-18?16:18??1\1\Form12.cs
?????文件????????8565??2014-11-18?16:16??1\1\Form12.Designer.cs
?????文件????????5814??2014-11-18?16:16??1\1\Form12.resx
?????文件????????3327??2014-11-10?21:08??1\1\Form13.cs
?????文件????????6708??2014-11-10?21:08??1\1\Form13.Designer.cs
?????文件????????5814??2014-11-10?21:08??1\1\Form13.resx
?????文件????????2012??2013-07-01?20:02??1\1\Form14.cs
?????文件????????5333??2013-07-01?20:02??1\1\Form14.Designer.cs
............此處省略65個文件信息
評論
共有 條評論