資源簡介
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;
//textBox1 起初金額
//textBox2 起初數量
//textBox3 借方金額
//textBox4 借方數量
//textBox5 貸方金額
//textBox6 貸方數量
//textBox7 期末金額
//textBox8 期末數量
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
if(button1.Text == "開始")
{
//double flag1 = double.Parse(textBox2.Text);//
double flag1 = double.Parse(textBox2.Text);
flag1 = flag1 1;
string flag2 = flag1.ToString();
textBox1.Text = flag2;
button1.Text = "停止";
}
}
private void test_mian_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
}
private void label3_Click(object sender, EventArgs e)
{
}
private void label11_Click(object sender, EventArgs e)
{
}
private void timer1_Tick(object sender, EventArgs e)
{
label11.Text = "Time : " DateTime.Now.ToLongTimeString().ToString();
if (button1.Text == "停止")
{
System.Threading.Thread.Sleep(10);
button1.Text = "運行";
}
代碼片段和文件信息
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;
//textBox1????起初金額
//textBox2????起初數量
//textBox3????借方金額
//textBox4????借方數量
//textBox5????貸方金額
//textBox6????貸方數量
//textBox7????期末金額
//textBox8????期末數量
namespace?WindowsFormsApplication1
{
????public?partial?class?Form1?:?Form
????{
????????public?Form1()
????????{
????????????InitializeComponent();
????????}
????????private?void?Form1_Load(object?sender?EventArgs?e)
????????{
????????????
????????}
????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????if(button1.Text?==?“開始“)
????????????{
????????????????//double?flag1?=?double.Parse(textBox2.Text);//
????????????????double?flag1?=?double.Parse(textBox2.Text);
????????????????flag1?=?flag1?+?1;
????????????????string?flag2?=?flag1.ToString();
????????????????textBox1.Text?=?flag2;
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????..A..H.?????54272??2015-11-23?14:27??測試\存貨計價性測試\.vs\存貨計價性測試\v14\.suo
?????文件??????62464??2014-09-09?14:03??測試\存貨計價性測試\存貨計價性測試\bin\Debug\WindowsFormsApplication1.exe
?????文件??????24064??2014-09-09?14:03??測試\存貨計價性測試\存貨計價性測試\bin\Debug\WindowsFormsApplication1.pdb
?????文件??????11600??2014-09-09?14:03??測試\存貨計價性測試\存貨計價性測試\bin\Debug\WindowsFormsApplication1.vshost.exe
?????文件????????490??2013-06-18?20:28??測試\存貨計價性測試\存貨計價性測試\bin\Debug\WindowsFormsApplication1.vshost.exe.manifest
?????文件??????69120??2015-11-16?09:06??測試\存貨計價性測試\存貨計價性測試\bin\Debug\存貨計價性測試.exe
?????文件??????28160??2015-11-16?09:06??測試\存貨計價性測試\存貨計價性測試\bin\Debug\存貨計價性測試.pdb
?????文件??????22696??2015-11-23?13:25??測試\存貨計價性測試\存貨計價性測試\bin\Debug\存貨計價性測試.vshost.exe
?????文件????????490??2015-06-04?12:48??測試\存貨計價性測試\存貨計價性測試\bin\Debug\存貨計價性測試.vshost.exe.manifest
?????文件??????62464??2014-09-09?14:03??測試\存貨計價性測試\存貨計價性測試\bin\Release\WindowsFormsApplication1.exe
?????文件??????19968??2014-09-09?14:03??測試\存貨計價性測試\存貨計價性測試\bin\Release\WindowsFormsApplication1.pdb
?????文件??????69120??2014-10-11?16:58??測試\存貨計價性測試\存貨計價性測試\bin\Release\存貨計價性測試.exe
?????文件??????34304??2014-10-11?16:58??測試\存貨計價性測試\存貨計價性測試\bin\Release\存貨計價性測試.pdb
?????文件???????2075??2015-11-16?09:06??測試\存貨計價性測試\存貨計價性測試\Form1.cs
?????文件??????21972??2015-11-16?09:06??測試\存貨計價性測試\存貨計價性測試\Form1.Designer.cs
?????文件??????84497??2015-11-16?09:06??測試\存貨計價性測試\存貨計價性測試\Form1.resx
?????文件???????2143??2014-09-09?14:27??測試\存貨計價性測試\存貨計價性測試\Model1.Designer.cs
?????文件???????2300??2014-09-09?14:27??測試\存貨計價性測試\存貨計價性測試\Model1.edmx
?????文件???????5423??2015-11-23?12:28??測試\存貨計價性測試\存貨計價性測試\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
?????文件???????7475??2015-11-17?11:29??測試\存貨計價性測試\存貨計價性測試\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件????????458??2014-09-09?14:34??測試\存貨計價性測試\存貨計價性測試\obj\x86\Debug\edmxResourcesToem
?????文件????????337??2014-09-09?14:34??測試\存貨計價性測試\存貨計價性測試\obj\x86\Debug\edmxResourcesToem
?????文件????????272??2014-09-09?14:34??測試\存貨計價性測試\存貨計價性測試\obj\x86\Debug\edmxResourcesToem
?????文件???????4096??2014-09-09?14:27??測試\存貨計價性測試\存貨計價性測試\obj\x86\Debug\TempPE\Model1.Designer.cs.dll
?????文件????????862??2014-09-09?14:03??測試\存貨計價性測試\存貨計價性測試\obj\x86\Debug\WindowsFormsApplication1.csproj.FileListAbsolute.txt
?????文件????????975??2014-09-09?14:03??測試\存貨計價性測試\存貨計價性測試\obj\x86\Debug\WindowsFormsApplication1.csproj.GenerateResource.Cache
?????文件??????62464??2014-09-09?14:03??測試\存貨計價性測試\存貨計價性測試\obj\x86\Debug\WindowsFormsApplication1.exe
?????文件??????51828??2015-11-16?09:06??測試\存貨計價性測試\存貨計價性測試\obj\x86\Debug\WindowsFormsApplication1.Form1.resources
?????文件??????24064??2014-09-09?14:03??測試\存貨計價性測試\存貨計價性測試\obj\x86\Debug\WindowsFormsApplication1.pdb
?????文件????????180??2015-11-16?09:03??測試\存貨計價性測試\存貨計價性測試\obj\x86\Debug\WindowsFormsApplication1.Properties.Resources.resources
............此處省略54個文件信息
- 上一篇:控制動物的奔跑與停止
- 下一篇:js實現關鍵字高亮
評論
共有 條評論