资源简介
用户运行此程序,先注册一个账号与密码,然后登陆进去,可以模拟银行的存钱、取钱、汇款操作。为了方便大家互相学习及改进这个程序,压缩文件内有源程序,可以直接打开、编译、运行。
代码片段和文件信息
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#
川公网安备 51152502000135号
评论
共有 条评论