资源简介
这个是我在2010学期做的UML作业,里面包含了visio制作的自动贩卖机状态图,一份带截图的报告,一份自动贩卖机模拟软件exe文件,一份软件项目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 VendingMachine
{
public partial class Form1 : Form
{
public double AllMoney = 0;
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender EventArgs e)
{
this.pictureBox2.Image = imageList1.Images[0];
this.pictureBox3.Image = imageList1.Images[1];
this.pictureBox4.Image = imageList1.Images[2];
this.pictureBox5.Image = imageList1.Images[3];
this.pictureBox6.Image = imageList1.Images[4];
this.pictureBox7.Image = imageList1.Images[5];
this.pictureBox8.Image = imageList1.Images[6];
this.pictureBox9.Image = imageList1.Images[7];
this.pictureBox10.Image = imageList1.Images[8];
this.pictureBox11.Image = imageList1.Images[9];
}
private void pictureBox1_Click(object sender EventArgs e)
{
this.pictureBox1.Image = null;
}
private void button1_Click(object sender EventArgs e)
{
if (textBox1.Text != ““)
{
AllMoney += System.Convert.ToDouble(textBox1.Text);
}
this.textBox1.Clear();
this.textBox2.Clear();
CheckButton();
}
public void CheckButton()
{
if (AllMoney >= System.Convert.ToDouble(button3.Text))
{
button3.Enabled = true;
}
if (AllMoney >= System.Convert.ToDouble(button4.Text))
{
button4.Enabled = true;
}
if (AllMoney >= System.Convert.ToDouble(button5.Text))
{
button5.Enabled = true;
}
if (AllMoney >= System.Convert.ToDouble(button6.Text))
{
button6.Enabled = true;
}
if (AllMoney >= System.Convert.ToDouble(button7.Text))
{
button7.Enabled = true;
}
if (AllMoney >= System.Convert.ToDouble(button8.Text))
{
button8.Enabled = true;
}
if (AllMoney >= System.Convert.ToDouble(button9.Text))
{
button9.Enabled = true;
}
if (AllMoney >= System.Convert.ToDouble(button10.Text))
{
button10.Enabled = true;
}
if (AllMoney >= System.Convert.ToDouble(button11.Text))
{
button11.Enabled = true;
}
if (AllMoney >= System.Convert.ToDouble(button12.Text))
{
button12.Enabled = true;
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2010-07-01 10:51 VendingMachine\
文件 1329664 2010-05-30 23:39 VendingMachine.exe
目录 0 2010-07-01 10:51 VendingMachine\VendingMachine\
文件 932 2010-05-30 20:48 VendingMachine\VendingMachine.sln
文件 15360 2010-05-31 16:23 VendingMachine\VendingMachine.suo
目录 0 2010-07-01 10:51 VendingMachine\VendingMachine\bin\
目录 0 2010-07-01 10:51 VendingMachine\VendingMachine\bin\Debug\
文件 1329664 2010-05-30 23:39 VendingMachine\VendingMachine\bin\Debug\VendingMachine.exe
文件 36352 2010-05-30 23:39 VendingMachine\VendingMachine\bin\Debug\VendingMachine.pdb
文件 14328 2010-05-31 16:22 VendingMachine\VendingMachine\bin\Debug\VendingMachine.vshost.exe
文件 490 2009-06-11 05:14 VendingMachine\VendingMachine\bin\Debug\VendingMachine.vshost.exe.manifest
文件 7831 2010-05-30 23:39 VendingMachine\VendingMachine\Form1.cs
文件 32511 2010-05-30 23:34 VendingMachine\VendingMachine\Form1.Designer.cs
文件 1980454 2010-05-30 23:34 VendingMachine\VendingMachine\Form1.resx
目录 0 2010-07-01 10:51 VendingMachine\VendingMachine\obj\
目录 0 2010-07-01 10:51 VendingMachine\VendingMachine\obj\Debug\
目录 0 2010-07-01 10:51 VendingMachine\VendingMachine\obj\Debug\Refactor\
目录 0 2010-07-01 10:51 VendingMachine\VendingMachine\obj\Debug\TempPE\
文件 1347 2010-05-31 16:22 VendingMachine\VendingMachine\obj\Debug\VendingMachine.csproj.FileListAbsolute.txt
文件 847 2010-05-30 23:34 VendingMachine\VendingMachine\obj\Debug\VendingMachine.csproj.GenerateResource.Cache
文件 1329664 2010-05-30 23:39 VendingMachine\VendingMachine\obj\Debug\VendingMachine.exe
文件 1307949 2010-05-30 23:34 VendingMachine\VendingMachine\obj\Debug\VendingMachine.Form1.resources
文件 36352 2010-05-30 23:39 VendingMachine\VendingMachine\obj\Debug\VendingMachine.pdb
文件 180 2010-05-30 23:33 VendingMachine\VendingMachine\obj\Debug\VendingMachine.Properties.Resources.resources
文件 495 2010-05-30 20:52 VendingMachine\VendingMachine\Program.cs
目录 0 2010-07-01 10:51 VendingMachine\VendingMachine\Properties\
文件 1384 2010-05-30 20:48 VendingMachine\VendingMachine\Properties\AssemblyInfo.cs
文件 2878 2010-05-30 20:48 VendingMachine\VendingMachine\Properties\Resources.Designer.cs
文件 5612 2010-05-30 20:48 VendingMachine\VendingMachine\Properties\Resources.resx
文件 1099 2010-05-30 20:48 VendingMachine\VendingMachine\Properties\Settings.Designer.cs
文件 249 2010-05-30 20:48 VendingMachine\VendingMachine\Properties\Settings.settings
............此处省略3个文件信息
- 上一篇:C# Asp.net简单通讯录
- 下一篇:C#学籍管理系统
相关资源
- C#解析HL7消息的库135797
- C# OCR数字识别实例,采用TessnetOcr,对
- 考试管理系统 - C#源码
- asp.net C#购物车源代码
- C#实时网络流量监听源码
- C#百度地图源码
- Visual C#.2010从入门到精通配套源程序
- C# 软件版本更新
- C#屏幕软键盘源码,可以自己定制界面
- 智慧城市 智能家居 C# 源代码
- c#获取mobile手机的IMEI和IMSI
- C#实现简单QQ聊天程序
- 操作系统 模拟的 欢迎下载 C#版
- C#写的计算机性能监控程序
- 用C#实现邮件发送,有点类似于outlo
- MVC model层代码生成器 C#
- c#小型图书销售系统
- C# Socket Server Client 通讯应用 完整的服
- c# winform 自动登录 百度账户 源代码
- C#编写的16进制计算器
- C#TCP通信协议
- C# 数据表(Dataset)操作 合并 查询一
- C#语音识别系统speechsdk51,SpeechSDK51L
- 数据库备份还原工具1.0 C# 源码
-
[免费]xm
lDocument 节点遍历C# - EQ2008LEDc#开发实例
- DirectX.Capturec# winform 操作摄像头录像附
- c# 实现的最大最小距离方法对鸢尾花
- C#版保龄球记分代码
- C#自定义控件
评论
共有 条评论