資源簡介
用戶運行此程序,先注冊一個賬號與密碼,然后登陸進去,可以模擬銀行的存錢、取錢、匯款操作。為了方便大家互相學習及改進這個程序,壓縮文件內有源程序,可以直接打開、編譯、運行。

代碼片段和文件信息
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?銀行系統
{
????public?partial?class?payMoney?:?Form
????{
????????public?string?myID;
????????public?payMoney()
????????{
????????????InitializeComponent();
????????}
????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????userMoney?myUserMoney?=?new?userMoney();
????????????string??toID=textBox2.Text;
????????????string?numMoney=textBox3.Text;
????????????string?information;
????????????myUserMoney.payMoney(myIDtoIDnumMoneyout?information);
????????????string?detail?=?information.Split(‘*‘)[0];
????????????string?status?=?information.Split(‘*‘)[1];
????????????//MessageBox.Show(detail);
????????????if?(status?==?“ok“)
????????????{
????????????????MessageBoxButtons?messButton?=?MessageBoxButtons.YesNo;
????????????????DialogResult?dr?=?MessageBox.Show(detail?+?“\n“?+?““是”--繼續匯款“?+?“\n“?+?““否”--退出匯款“?“是否繼續匯款“?messButton);
????????????????if?(dr?==?DialogResult.Yes)
????????????????{
????????????????????//this.textBox2.Text?=?““;
????????????????????this.textBox3.Text?=?““;
????????????????}
????????????????else
????????????????{
????????????????????this.Close();
????????????????}
????????????}
????????????else?
????????????{
????????????????MessageBoxButtons?messButton?=?MessageBoxButtons.YesNo;
????????????????DialogResult?dr?=?MessageBox.Show(“匯款失敗!\n“+“失敗原因:“+detail?+?“\n“?+?““是”--繼續匯款“?+?“\n“?+?““否”--退出匯款“?“是否重新匯款“?messButton);
????????????????if?(dr?==?DialogResult.Yes)
????????????????{
????????????????????this.textBox2.Text?=?““;
????????????????????this.textBox3.Text?=?““;
????????????????}
????????????????else
????????????????{
????????????????????this.Close();
????????????????}
????????????}
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????53??2017-10-05?16:51??銀行系統\bin\Debug\money.txt
?????文件?????????67??2017-10-05?16:50??銀行系統\bin\Debug\useInfoFile.txt
?????文件??????32256??2017-10-05?16:50??銀行系統\bin\Debug\銀行系統.exe
?????文件??????56832??2017-10-05?16:50??銀行系統\bin\Debug\銀行系統.pdb
?????文件??????11600??2017-10-05?08:55??銀行系統\bin\Debug\銀行系統.vshost.exe
?????文件????????490??2017-03-19?05:00??銀行系統\bin\Debug\銀行系統.vshost.exe.manifest
?????文件???????5420??2017-10-03?14:12??銀行系統\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache
?????文件???????6386??2017-10-05?16:50??銀行系統\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件????????180??2017-10-05?15:17??銀行系統\obj\x86\Debug\銀行系統.bank.resources
?????文件???????1210??2017-10-05?16:07??銀行系統\obj\x86\Debug\銀行系統.csproj.FileListAbsolute.txt
?????文件???????1234??2017-10-05?15:59??銀行系統\obj\x86\Debug\銀行系統.csproj.GenerateResource.Cache
?????文件???????9174??2017-10-03?14:15??銀行系統\obj\x86\Debug\銀行系統.csprojResolveAssemblyReference.cache
?????文件??????32256??2017-10-05?16:50??銀行系統\obj\x86\Debug\銀行系統.exe
?????文件??????11775??2017-10-05?15:17??銀行系統\obj\x86\Debug\銀行系統.login.resources
?????文件????????180??2017-10-05?15:59??銀行系統\obj\x86\Debug\銀行系統.payMoney.resources
?????文件??????56832??2017-10-05?16:50??銀行系統\obj\x86\Debug\銀行系統.pdb
?????文件????????180??2017-10-05?15:17??銀行系統\obj\x86\Debug\銀行系統.Properties.Resources.resources
?????文件????????180??2017-10-05?15:17??銀行系統\obj\x86\Debug\銀行系統.saveMoney.resources
?????文件???????2046??2017-10-05?16:50??銀行系統\payMoney.cs
?????文件???????4135??2017-10-05?15:59??銀行系統\payMoney.Designer.cs
?????文件???????5817??2017-10-05?15:59??銀行系統\payMoney.resx
?????文件????????561??2017-10-02?19:08??銀行系統\Program.cs
?????文件???????1356??2017-10-02?11:12??銀行系統\Properties\AssemblyInfo.cs
?????文件???????2876??2017-10-02?11:12??銀行系統\Properties\Resources.Designer.cs
?????文件???????5612??2017-10-02?11:12??銀行系統\Properties\Resources.resx
?????文件???????1099??2017-10-02?11:12??銀行系統\Properties\Settings.Designer.cs
?????文件????????249??2017-10-02?11:12??銀行系統\Properties\Settings.settings
?????文件???????8918??2017-10-05?16:38??銀行系統\存款.cs
?????文件???????3636??2017-10-04?20:06??銀行系統\存款.Designer.cs
?????文件???????5817??2017-10-04?20:06??銀行系統\存款.resx
............此處省略21個文件信息
- 上一篇:hadoop3.1.2@win64
- 下一篇:計算點線緩沖區 c#
評論
共有 條評論