資源簡介
適合新學C#winforms做參考。代價經過精簡處理。一般初學者都易懂

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;
using?System.Data.SqlClient;
using?System.IO;
namespace?工資管理系統
{
????class?ConnClass
????{
????????ConnStringClass?connString?=?new?ConnStringClass();
????????public?bool?isTrue?=?false;
????????public?ConnClass()
????????{
????????????string?open_name?=?AppDomain.CurrentDomain.baseDirectory?+?“MyServer\\“?+?“Server.txt“;
????????????FileInfo?openFile?=?new?FileInfo(open_name);
????????????if?(openFile.Exists)
????????????{
????????????????//構造一個文件流
????????????????FileStream?fs_open?=?new?FileStream(open_name?FileMode.Open);
????????????????//構造一個讀取流
????????????????StreamReader?sr_open?=?new?StreamReader(fs_open?Encoding.Default);
????????????????connString.Server?=?sr_open.ReadLine();
????????????????connString.Database?=?sr_open.ReadLine();
????????????????connString.Uid?=?sr_open.ReadLine();
????????????????connString.Pwd?=?sr_open.ReadLine();
????????????????sr_open.Close();
????????????????fs_open.Close();
????????????}
????????????else
????????????{
????????????????MessageBox.Show(“要打開的文件不存在!“);
????????????}
????????????//connString.Server?=?“.“;
????????????//connString.Database?=?“工資管理系統“;
????????????//connString.Uid?=?“sa“;
????????????//connString.Pwd?=?“123“;
????????????//conn?=?new?SqlConnection(“server=“?+?connString.Server?+?“;database=“?+?connString.Database?+?“;uid=“?+?connString.Uid?+?“;pwd=“?+?connString.Pwd);
????????????//try
????????????//{
????????????//????conn.Open();
????????????//????isTrue?=?true;
????????????//}
????????????//catch
????????????//{
????????????//????isTrue?=?false;
????????????//}
????????}
????????public?SqlConnection?getConnection()
????????{
????????????SqlConnection?conn?=?new?SqlConnection(“server=“?+?connString.Server?+?“;database=“?+?connString.Database?+?“;uid=“?+?connString.Uid?+?“;pwd=“?+?connString.Pwd);
????????????return?conn;
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????943??2010-03-03?23:32??工資管理系統\工資管理系統.sln
????..A..H.?????84992??2006-01-01?00:12??工資管理系統\工資管理系統.suo
?????文件????????853??2006-01-08?06:24??工資管理系統\工資管理系統\GZDataSet.xss
?????文件???????4250??2006-01-08?06:55??工資管理系統\工資管理系統\frmQX.cs
?????文件???????8181??2006-01-01?00:13??工資管理系統\工資管理系統\EmplesImplement.cs
?????文件??????10524??2006-01-01?00:10??工資管理系統\工資管理系統\Form1.Designer.cs
?????文件???????2522??2006-01-01?03:05??工資管理系統\工資管理系統\frmlog.cs
?????文件??????22332??2006-01-01?02:02??工資管理系統\工資管理系統\frmEmples.Designer.cs
?????文件??????51111??2006-01-01?02:02??工資管理系統\工資管理系統\frmEmples.resx
?????文件??????18750??2006-01-01?00:53??工資管理系統\工資管理系統\frmMain.resx
?????文件??????30903??2006-01-01?02:02??工資管理系統\工資管理系統\frmSetGZ.Designer.cs
?????文件???????2149??2010-05-12?19:29??工資管理系統\工資管理系統\ConnClass.cs
?????文件???????4624??2006-01-01?07:19??工資管理系統\工資管理系統\Form1.cs
?????文件???????5084??2006-01-08?03:32??工資管理系統\工資管理系統\frmRegist.cs
?????文件??????10586??2006-01-01?03:09??工資管理系統\工資管理系統\frmRegist.Designer.cs
?????文件??????21312??2006-01-01?03:09??工資管理系統\工資管理系統\frmRegist.resx
?????文件???????3599??2006-01-01?08:46??工資管理系統\工資管理系統\frmUpdateUser.cs
?????文件???????7395??2010-04-21?21:52??工資管理系統\工資管理系統\frmUpdateUser.Designer.cs
?????文件??????43940??2010-04-21?21:52??工資管理系統\工資管理系統\frmUpdateUser.resx
?????文件???????6395??2006-01-01?01:19??工資管理系統\工資管理系統\frmMain.cs
?????文件????????635??2010-03-04?00:15??工資管理系統\工資管理系統\UserClass.cs
?????文件??????30033??2006-01-01?00:53??工資管理系統\工資管理系統\frmMain.Designer.cs
?????文件??????12065??2006-01-01?00:44??工資管理系統\工資管理系統\工資管理系統.csproj
?????文件??????31895??2010-03-04?02:15??工資管理系統\工資管理系統\Resources\12.jpg
?????文件????????453??2010-03-04?02:34??工資管理系統\工資管理系統\Resources\2leftarrow.png
?????文件???????4320??2010-03-03?23:36??工資管理系統\工資管理系統\Resources\34.jpg
?????文件????????603??2010-03-04?01:28??工資管理系統\工資管理系統\Resources\Advances.png
?????文件????????643??2010-04-22?13:24??工資管理系統\工資管理系統\Resources\Attendance.png
?????文件???????1434??2010-03-04?01:26??工資管理系統\工資管理系統\Resources\author.png
?????文件????????870??2010-03-04?01:45??工資管理系統\工資管理系統\Resources\back.jpg
............此處省略155個文件信息
- 上一篇:c/s系統框架
- 下一篇:全套源碼-某電子購物商城系統C#實現含數據庫
評論
共有 條評論