資源簡介
基于C#的點名小軟件,可修改數(shù)據(jù)資源實現(xiàn)班級點名或者其他點名。

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Threading.Tasks;
using?System.Windows.Forms;
using?System.IO;
namespace?點名
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????//?Directory.
????????//string[]?y?=?Directory.GetFiles(@“\image“);
????????List?path;
????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????if?(button1.Text?==?“隨機抽取“)
????????????{
????????????????timer1.Enabled?=?true;
????????????????button1.Text?=?“暫停“;
????????????}
????????????else
????????????{
????????????????timer1.Enabled?=?false;
????????????????button1.Text?=?“隨機抽取“;
????????????}
????????????//path?=?new?List();
????????????//string[]?lian=?Directory.GetFiles(@“\image“);
????????????//for?(int?i?=?0;?i?????????????//{
????????????//????path.Add(lian[i]);
????????????//}
????????}
????????private?void?timer1_Tick(object?sender?EventArgs?e)
????????{
????????????path?=?new?List();
????????????string[]?lian?=?Directory.GetFiles(“./image“);
????????????for?(int?i?=?0;?i?????????????{
????????????????path.Add(lian[i]);
????????????}
????????????Random?de?=?new?Random();
????????????int?t=de.Next(0?4);
????????????pictureBox1.Image?=?Image.FromFile(path[t]);
????????????pictureBox1.SizeMode?=?PictureBoxSizeMode.StretchImage;
????????????string?w=?Path.GetFileName(path[t]);
????????????char[]?p?=?new?char[]?{?‘.‘?};
???????????string[]?r=?w.Split(p);
????????????label1.Text?=?r[0];
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2018-07-29?01:06??點名\
?????目錄???????????0??2018-07-29?01:06??點名\.vs\
?????目錄???????????0??2018-07-29?01:06??點名\.vs\點名\
?????目錄???????????0??2018-07-29?01:06??點名\.vs\點名\v14\
?????文件???????29184??2018-07-29?01:04??點名\.vs\點名\v14\.suo
?????目錄???????????0??2018-07-29?01:06??點名\點名\
?????文件?????????985??2018-04-27?23:15??點名\點名.sln
?????文件?????????189??2018-04-27?23:15??點名\點名\App.config
?????目錄???????????0??2018-07-29?01:06??點名\點名\bin\
?????目錄???????????0??2018-07-29?01:06??點名\點名\bin\Debug\
?????目錄???????????0??2018-07-29?01:06??點名\點名\bin\Debug\image\
?????文件???????35564??2018-07-16?19:43??點名\點名\bin\Debug\image\1.jpg
?????文件????????9842??2018-07-21?15:14??點名\點名\bin\Debug\image\3.jpg
?????文件?????????106??2018-07-16?19:43??點名\點名\bin\Debug\image\biao.gif
?????文件????????1854??2018-07-16?19:43??點名\點名\bin\Debug\image\bk1.jpg
?????文件?????????343??2018-07-16?19:43??點名\點名\bin\Debug\image\index7.gif
?????文件????????6246??2018-07-16?19:43??點名\點名\bin\Debug\image\logo.gif
?????文件????????9216??2018-07-29?01:04??點名\點名\bin\Debug\點名.exe
?????文件?????????189??2018-04-27?23:15??點名\點名\bin\Debug\點名.exe.config
?????文件???????19968??2018-07-29?01:04??點名\點名\bin\Debug\點名.pdb
?????文件???????22696??2018-07-29?01:04??點名\點名\bin\Debug\點名.vshost.exe
?????文件?????????189??2018-04-27?23:15??點名\點名\bin\Debug\點名.vshost.exe.config
?????文件?????????490??2013-06-18?20:28??點名\點名\bin\Debug\點名.vshost.exe.manifest
?????文件????????1789??2018-07-29?01:04??點名\點名\Form1.cs
?????文件????????3671??2018-04-27?23:47??點名\點名\Form1.Designer.cs
?????文件????????6011??2018-04-27?23:47??點名\點名\Form1.resx
?????目錄???????????0??2018-07-29?01:06??點名\點名\obj\
?????目錄???????????0??2018-07-29?01:06??點名\點名\obj\Debug\
?????文件????????1464??2018-07-29?01:02??點名\點名\obj\Debug\DesignTimeResolveAssemblyReferences.cache
?????文件????????7168??2018-07-29?00:59??點名\點名\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件???????????0??2018-04-27?23:15??點名\點名\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
............此處省略18個文件信息
評論
共有 條評論