資源簡介
首先在sqlserver中創(chuàng)建數(shù)據(jù)庫 SQL_Data,然后 執(zhí)行 scriptdb.sql腳本,最后修改下代碼中的 sql連接串的密碼為你本機密碼即可
代碼片段和文件信息
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;
namespace?Case06_11
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????private?void?CreateImage(int?ID)
????????{
????????????int?height?=?440?width?=?600;
????????????System.Drawing.Bitmap?image?=?new?System.Drawing.Bitmap(width?height);
????????????Graphics?g?=?Graphics.FromImage(image);
????????????try
????????????{
????????????????//清空圖片背景色
????????????????g.Clear(Color.White);
????????????????Font?font?=?new?System.Drawing.Font(“Arial“?9?Fontstyle.Regular);
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-05-25?13:22??Case06_11\
?????文件????????3954??2018-05-25?13:08??Case06_11\Case06_11.csproj
?????文件????????5883??2008-06-13?23:02??Case06_11\Form1.Designer.cs
?????文件????????8369??2018-05-25?13:22??Case06_11\Form1.cs
?????文件????????5814??2008-06-13?23:02??Case06_11\Form1.resx
?????文件?????????526??2011-01-10?11:12??Case06_11\Program.cs
?????目錄???????????0??2011-01-02?19:32??Case06_11\Properties\
?????文件????????1374??2008-06-13?22:35??Case06_11\Properties\AssemblyInfo.cs
?????文件????????2859??2018-05-25?13:08??Case06_11\Properties\Resources.Designer.cs
?????文件????????5612??2008-06-13?22:35??Case06_11\Properties\Resources.resx
?????文件????????1109??2018-05-25?13:08??Case06_11\Properties\Settings.Designer.cs
?????文件?????????249??2008-06-13?22:35??Case06_11\Properties\Settings.settings
?????目錄???????????0??2018-05-25?13:08??Case06_11\bin\
?????目錄???????????0??2018-05-25?13:09??Case06_11\bin\Debug\
?????文件???????14336??2018-05-25?13:22??Case06_11\bin\Debug\Case06_11.exe
?????文件???????26112??2018-05-25?13:22??Case06_11\bin\Debug\Case06_11.pdb
?????目錄???????????0??2018-05-25?13:08??Case06_11\obj\
?????目錄???????????0??2018-05-25?13:09??Case06_11\obj\Debug\
?????文件?????????180??2018-05-25?13:09??Case06_11\obj\Debug\Case06_11.Form1.resources
?????文件?????????180??2018-05-25?13:09??Case06_11\obj\Debug\Case06_11.Properties.Resources.resources
?????文件??????????42??2018-05-25?13:08??Case06_11\obj\Debug\Case06_11.csproj.CoreCompileInputs.cache
?????文件????????1394??2018-05-25?13:09??Case06_11\obj\Debug\Case06_11.csproj.FileListAbsolute.txt
?????文件?????????847??2018-05-25?13:09??Case06_11\obj\Debug\Case06_11.csproj.GenerateResource.cache
?????文件???????11066??2018-05-25?13:08??Case06_11\obj\Debug\Case06_11.csprojResolveAssemblyReference.cache
?????文件???????14336??2018-05-25?13:22??Case06_11\obj\Debug\Case06_11.exe
?????文件???????26112??2018-05-25?13:22??Case06_11\obj\Debug\Case06_11.pdb
?????文件?????????790??2018-05-25?13:09??Case06_11\obj\Debug\DesignTimeResolveAssemblyReferences.cache
?????文件????????7085??2018-05-25?13:08??Case06_11\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????目錄???????????0??2018-05-25?13:08??Case06_11\obj\Debug\TempPE\
?????文件????????3584??2018-05-25?13:08??Case06_11\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
?????文件????????1123??2018-05-25?13:08??Case06_11.sln
............此處省略1個文件信息
評論
共有 條評論