• 大小: 2.67MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-14
  • 语言: C#
  • 标签: C#  UML  界面  

资源简介

这个是我在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个文件信息

评论

共有 条评论