資源簡介
c#開發的4個小實例 用于c# 入門學習

代碼片段和文件信息
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;
namespace?_1
{
????public?partial?class?Form1?:?Form
????{
????????private?int?flight?=?0;?
????????private?int?seat?=?0;?
????????private?int?time?=?0;?
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????private?void?groupBox1_Enter(object?sender?EventArgs?e)
????????{
????????}
????????private?void?radioButton2_CheckedChanged(object?sender?EventArgs?e)
????????{
????????????flight?=?2;
????????}
????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????if?(flight?==?1)
????????????{
????????????????textBox1.Text?=?“食物供應,播放電影“;
????????????????return;
????????????}
????????????else?if?(flight?==?2)
????????????{
????????????????textBox1.Text?=?“食物供應“;
????????????????if?(seat?==?1)
????????????????{
????????????????????textBox1.Text?+=?“播放電影“;
????????????????}
????????????}
????????????else?if?(flight?==?3)
????????????{
????????????????if?(seat?==?1)
????????????????{
????????????????????textBox1.Text?=?“食物供應“;
????????????????}
????????????????else?if?(time?==?1)
????????????????{
????????????????????textBox1.Text?=?“食物供應“;
????????????????}
????????????????else
????????????????{
????????????????????textBox1.Text?=?“無服務“;
????????????????}
????????????}
????????}
????????private?void?radioButton1_CheckedChanged(object?sender?EventArgs?e)
????????{
????????????flight?=?1;
????????}
????????private?void?radioButton3_CheckedChanged(object?sender?EventArgs?e)
????????{
????????????flight?=?3;
????????}
????????private?void?radioButton4_CheckedChanged(object?sender?EventArgs?e)
????????{
????????????seat?=?1;
????????}
????????private?void?radioButton5_CheckedChanged(object?sender?EventArgs?e)
????????{
????????????seat?=?2;
????????}
????????private?void?radioButton6_CheckedChanged(object?sender?EventArgs?e)
????????{
????????????time?=?1;
????????}
????????private?void?radioButton7_CheckedChanged(object?sender?EventArgs?e)
????????{
????????????time?=?2;
????????}
????????private?void?button2_Click(object?sender?EventArgs?e)
????????{
????????????Application.Exit();
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2014-10-09?10:06??C#?小實例\
?????目錄???????????0??2014-10-09?10:06??C#?小實例\1\
?????目錄???????????0??2014-10-09?10:06??C#?小實例\1\1\
?????文件????????3714??2014-05-04?09:09??C#?小實例\1\1\1.csproj
?????文件???????11713??2014-05-04?09:26??C#?小實例\1\1\Form1.Designer.cs
?????文件????????2448??2014-05-04?09:26??C#?小實例\1\1\Form1.cs
?????文件????????5814??2014-05-04?09:26??C#?小實例\1\1\Form1.resx
?????文件?????????494??2014-05-04?08:57??C#?小實例\1\1\Program.cs
?????目錄???????????0??2014-10-09?10:06??C#?小實例\1\1\Properties\
?????文件????????1414??2014-05-04?08:57??C#?小實例\1\1\Properties\AssemblyInfo.cs
?????文件????????2833??2014-05-04?08:57??C#?小實例\1\1\Properties\Resources.Designer.cs
?????文件????????5612??2014-05-04?08:57??C#?小實例\1\1\Properties\Resources.resx
?????文件????????1087??2014-05-04?08:57??C#?小實例\1\1\Properties\Settings.Designer.cs
?????文件?????????249??2014-05-04?08:57??C#?小實例\1\1\Properties\Settings.settings
?????目錄???????????0??2014-10-09?10:06??C#?小實例\1\1\obj\
?????目錄???????????0??2014-10-09?10:06??C#?小實例\1\1\obj\Debug\
?????文件?????????508??2014-05-04?09:26??C#?小實例\1\1\obj\Debug\1.csproj.FileListAbsolute.txt
?????文件?????????847??2014-05-04?09:26??C#?小實例\1\1\obj\Debug\1.csproj.GenerateResource.Cache
?????文件???????11776??2014-05-04?09:26??C#?小實例\1\1\obj\Debug\1.exe
?????文件???????28160??2014-05-04?09:26??C#?小實例\1\1\obj\Debug\1.pdb
?????文件?????????180??2014-05-04?09:26??C#?小實例\1\1\obj\Debug\_1.Form1.resources
?????文件?????????180??2014-05-04?09:09??C#?小實例\1\1\obj\Debug\_1.Properties.Resources.resources
?????文件?????????893??2014-05-04?08:57??C#?小實例\1\1.sln
?????文件???????13312??2014-05-04?09:26??C#?小實例\1\1.suo
?????目錄???????????0??2014-10-09?10:06??C#?小實例\2\
?????目錄???????????0??2014-10-09?10:06??C#?小實例\2\2\
?????文件????????3714??2014-05-04?09:46??C#?小實例\2\2\2.csproj
?????文件????????9413??2014-05-04?09:46??C#?小實例\2\2\Form1.Designer.cs
?????文件????????2095??2014-05-04?09:48??C#?小實例\2\2\Form1.cs
?????文件????????5814??2014-05-04?09:46??C#?小實例\2\2\Form1.resx
?????文件?????????494??2014-05-04?09:27??C#?小實例\2\2\Program.cs
............此處省略78個文件信息
- 上一篇:ASP.NET登錄注冊連接數據庫
- 下一篇:利用C#、MVC設計的小型圖書管理系統
評論
共有 條評論