資源簡介
switch (aa)
{
case "香港":
float a;
a = float.Parse(textBox1.Text);
// textBox1.Text = a.ToString();
if (a <= 1)
{
label3.Text = "30";
}
else if (a > 1)
{
float b = a % 1;
float c = a - b;
if (b <= 0.5)
{
double res;
if (b == 0)
{
res = (c - 1) * 25 30;
label3.Text = res.ToString();
}
else
{
res = (c - 1) * 25 30 12.5;
label3.Text = res.ToString();
}
}
else if (b > 0.5)
{
double res;
res = c * 25 30;
label3.Text = res.ToString();
}
}
break;
代碼片段和文件信息
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?ex_2
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????private?void?Form1_Load(object?sender?EventArgs?e)
????????{
????????????this.comboBox1.Items.AddRange(new?object[]?{
?????????????“香港“?“臺灣““澳門““崇明島““江浙滬皖““外圍一區(qū)““外圍二區(qū)““外圍三區(qū)““外圍四區(qū)“});
????????????this.comboBox2.Items.AddRange(new?object[]?{?“香港“?“新疆“?“西藏“?“山西“?“內(nèi)蒙古“?“遼寧“?“吉林“?“黑龍江“?“寧夏“?“甘肅“?“青海“?“臺灣“?“澳門“?“上海“?
????????????????“江蘇“?“浙江“?“上海“?“安徽“?“山東“?“北京“?“天津“?“廣東“?“福建“?“江西“?“湖南“
????????????????“湖北“?“河南
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????14848??2014-09-10?09:37??ex?2\ex?2\bin\Debug\ex?2.exe
?????文件??????30208??2014-09-10?09:37??ex?2\ex?2\bin\Debug\ex?2.pdb
?????文件??????14328??2014-09-10?09:37??ex?2\ex?2\bin\Debug\ex?2.vshost.exe
?????文件????????490??2009-06-11?05:14??ex?2\ex?2\bin\Debug\ex?2.vshost.exe.manifest
?????文件???????3754??2014-09-09?14:39??ex?2\ex?2\ex?2.csproj
?????文件??????15598??2014-09-10?09:37??ex?2\ex?2\Form1.cs
?????文件???????7760??2014-09-10?09:37??ex?2\ex?2\Form1.Designer.cs
?????文件???????5814??2014-09-10?09:37??ex?2\ex?2\Form1.resx
?????文件????????415??2014-09-10?09:37??ex?2\ex?2\obj\Debug\ex?2.csproj.FileListAbsolute.txt
?????文件????????847??2014-09-10?09:37??ex?2\ex?2\obj\Debug\ex?2.csproj.GenerateResource.Cache
?????文件??????14848??2014-09-10?09:37??ex?2\ex?2\obj\Debug\ex?2.exe
?????文件??????30208??2014-09-10?09:37??ex?2\ex?2\obj\Debug\ex?2.pdb
?????文件????????180??2014-09-10?09:37??ex?2\ex?2\obj\Debug\ex_2.Form1.resources
?????文件????????180??2014-09-09?14:39??ex?2\ex?2\obj\Debug\ex_2.Properties.Resources.resources
?????文件????????485??2014-09-09?14:39??ex?2\ex?2\Program.cs
?????文件???????1358??2014-09-09?14:39??ex?2\ex?2\Properties\AssemblyInfo.cs
?????文件???????2858??2014-09-09?14:39??ex?2\ex?2\Properties\Resources.Designer.cs
?????文件???????5612??2014-09-09?14:39??ex?2\ex?2\Properties\Resources.resx
?????文件???????1089??2014-09-09?14:39??ex?2\ex?2\Properties\Settings.Designer.cs
?????文件????????249??2014-09-09?14:39??ex?2\ex?2\Properties\Settings.settings
?????文件????????902??2014-09-09?14:39??ex?2\ex?2.sln
????..A..H.?????14336??2014-09-10?09:37??ex?2\ex?2.suo
?????目錄??????????0??2014-09-09?14:39??ex?2\ex?2\obj\Debug\TempPE
?????目錄??????????0??2014-09-10?09:39??ex?2\ex?2\bin\Debug
?????目錄??????????0??2014-09-10?09:39??ex?2\ex?2\obj\Debug
?????目錄??????????0??2014-09-10?09:39??ex?2\ex?2\bin
?????目錄??????????0??2014-09-10?09:39??ex?2\ex?2\obj
?????目錄??????????0??2014-09-10?09:39??ex?2\ex?2\Properties
?????目錄??????????0??2014-09-10?09:39??ex?2\ex?2
?????目錄??????????0??2014-09-10?09:39??ex?2
............此處省略3個文件信息
- 上一篇:HTML5 socket在線聊天程序 源碼
- 下一篇:winfrom分頁
評論
共有 條評論