• 大小: 0.13M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2024-04-26
  • 语言: C#
  • 标签: 演示  模拟  

资源简介


资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WinFormTransporter
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void timerZ1_Tick(object sender EventArgs e)
        {
            NumsIfOK(cbA1 txtA1Nums);
            NumsIfOK(cbA2 txtA2Nums);
            NumsIfOK(cbA3 txtA3Nums);

            if (cbA3.Checked)
            {
                if (ZARun(labA3 txtA3))
                {
                    NumsStateShow(cbA3 txtA3Nums);
                }
               // MessageBox.Show(labA3.Text + “点已出货!“);
            }
            if (cbA2.Checked)
            {
                if (ZARun(labA2 txtA2))
                {
                    NumsStateShow(cbA2 txtA2Nums);
                }
            }
            if (cbA1.Checked)
            {
                if (ZARun(labA1 txtA1))
                {
                    NumsStateShow(cbA1 txtA1Nums);
                }
            }
        }

        private void NumsStateShow(CheckBox cbA3 TextBox txtA3Nums)
        {
            try
            {
                if ((TxtToInt(txtA3Nums) - 1) == 0)
                {
                    txtA3Nums.Text = “0“;
                    cbA3.Checked = false;
                }
                else
                {
                    txtA3Nums.Text = (TxtToInt(txtA3Nums) - 1).ToString();
                }
            }
            catch (Exception)
            {
                MessageBox.Show(“请在输入框内输入数字!“);
            }
        }

        /// 
        /// 判断是否有货,有则显示,无则不显示
        /// 

        /// 
        /// 
        private void NumsIfOK(CheckBox cb TextBox txt)
        {
            int t = TxtToInt(txt);
            if (0            {
                cb.Checked = true;
            }
            else 
            {
                cb.Checked = false;
            }
        }

        private bool ZARun(Label labA TextBox txtW)
        {
            if (cbB1.Checked == false)
            {
                if (txtB1.Text == txtW.Text)
                {
                    int nowNum=Convert.ToInt32(labB1Count.Text);
                    if (nowNum <= 5)
                    {
                        if (nowNum == 4)
                        {
                            cbB1.Checked = true;
                            txtB1NowNum1.Text += “*|“;
                            labB1Count.Text = “5“;
                            return true;

                        }
                        txtB1NowNum1.Text += “*|“;
                        nowNum += 1;
                        labB1Count.Text = nowNum.To

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        187  2013-09-03 12:07  Transporter模拟环穿小车的接送货过程V1.2\Transporter\WinFormTransporter\WinFormTransporter\App.config

     文件      37376  2014-11-22 22:54  Transporter模拟环穿小车的接送货过程V1.2\Transporter\WinFormTransporter\WinFormTransporter\bin\Debug\WinFormTransporter.exe

     文件        187  2013-09-03 12:07  Transporter模拟环穿小车的接送货过程V1.2\Transporter\WinFormTransporter\WinFormTransporter\bin\Debug\WinFormTransporter.exe.config

     文件      48640  2014-11-22 22:54  Transporter模拟环穿小车的接送货过程V1.2\Transporter\WinFormTransporter\WinFormTransporter\bin\Debug\WinFormTransporter.pdb

     文件      22984  2014-11-22 22:59  Transporter模拟环穿小车的接送货过程V1.2\Transporter\WinFormTransporter\WinFormTransporter\bin\Debug\WinFormTransporter.vshost.exe

     文件        187  2013-09-03 12:07  Transporter模拟环穿小车的接送货过程V1.2\Transporter\WinFormTransporter\WinFormTransporter\bin\Debug\WinFormTransporter.vshost.exe.config

     文件        490  2012-06-06 02:06  Transporter模拟环穿小车的接送货过程V1.2\Transporter\WinFormTransporter\WinFormTransporter\bin\Debug\WinFormTransporter.vshost.exe.manifest

     文件      12206  2014-11-22 22:54  Transporter模拟环穿小车的接送货过程V1.2\Transporter\WinFormTransporter\WinFormTransporter\Form1.cs

     文件      40492  2014-11-22 22:54  Transporter模拟环穿小车的接送货过程V1.2\Transporter\WinFormTransporter\WinFormTransporter\Form1.Designer.cs

     文件      23308  2014-11-22 22:54  Transporter模拟环穿小车的接送货过程V1.2\Transporter\WinFormTransporter\WinFormTransporter\Form1.resx

     文件       1084  2014-11-22 19:23  Transporter模拟环穿小车的接送货过程V1.2\Transporter\WinFormTransporter\WinFormTransporter\Form2.cs

     文件       2175  2014-11-22 19:21  Transporter模拟环穿小车的接送货过程V1.2\Transporter\WinFormTransporter\WinFormTransporter\Form2.Designer.cs

     文件       5817  2014-11-22 19:21  Transporter模拟环穿小车的接送货过程V1.2\Transporter\WinFormTransporter\WinFormTransporter\Form2.resx

     文件      11195  2013-09-03 13:22  Transporter模拟环穿小车的接送货过程V1.2\Transporter\WinFormTransporter\WinFormTransporter\getCAKOV01Y.jpg

     文件       1308  2013-09-04 08:32  Transporter模拟环穿小车的接送货过程V1.2\Transporter\WinFormTransporter\WinFormTransporter\obj\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       7091  2014-11-22 19:19  Transporter模拟环穿小车的接送货过程V1.2\Transporter\WinFormTransporter\WinFormTransporter\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件          0  2013-09-03 12:07  Transporter模拟环穿小车的接送货过程V1.2\Transporter\WinFormTransporter\WinFormTransporter\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs

     文件          0  2013-09-03 12:07  Transporter模拟环穿小车的接送货过程V1.2\Transporter\WinFormTransporter\WinFormTransporter\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs

     文件          0  2013-09-03 12:07  Transporter模拟环穿小车的接送货过程V1.2\Transporter\WinFormTransporter\WinFormTransporter\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs

     文件       2119  2014-11-22 22:59  Transporter模拟环穿小车的接送货过程V1.2\Transporter\WinFormTransporter\WinFormTransporter\obj\Debug\WinFormTransporter.csproj.FileListAbsolute.txt

     文件       1033  2014-11-22 22:54  Transporter模拟环穿小车的接送货过程V1.2\Transporter\WinFormTransporter\WinFormTransporter\obj\Debug\WinFormTransporter.csproj.GenerateResource.Cache

     文件       2209  2013-09-03 17:13  Transporter模拟环穿小车的接送货过程V1.2\Transporter\WinFormTransporter\WinFormTransporter\obj\Debug\WinFormTransporter.csprojResolveAssemblyReference.cache

     文件      37376  2014-11-22 22:54  Transporter模拟环穿小车的接送货过程V1.2\Transporter\WinFormTransporter\WinFormTransporter\obj\Debug\WinFormTransporter.exe

     文件      11675  2014-11-22 22:54  Transporter模拟环穿小车的接送货过程V1.2\Transporter\WinFormTransporter\WinFormTransporter\obj\Debug\WinFormTransporter.Form1.resources

     文件        180  2014-11-22 19:23  Transporter模拟环穿小车的接送货过程V1.2\Transporter\WinFormTransporter\WinFormTransporter\obj\Debug\WinFormTransporter.Form2.resources

     文件      48640  2014-11-22 22:54  Transporter模拟环穿小车的接送货过程V1.2\Transporter\WinFormTransporter\WinFormTransporter\obj\Debug\WinFormTransporter.pdb

     文件        180  2014-11-22 19:23  Transporter模拟环穿小车的接送货过程V1.2\Transporter\WinFormTransporter\WinFormTransporter\obj\Debug\WinFormTransporter.Properties.Resources.resources

     文件        530  2014-11-22 19:34  Transporter模拟环穿小车的接送货过程V1.2\Transporter\WinFormTransporter\WinFormTransporter\Program.cs

     文件       1356  2013-09-03 12:07  Transporter模拟环穿小车的接送货过程V1.2\Transporter\WinFormTransporter\WinFormTransporter\Properties\AssemblyInfo.cs

     文件       2888  2013-09-03 12:07  Transporter模拟环穿小车的接送货过程V1.2\Transporter\WinFormTransporter\WinFormTransporter\Properties\Resources.Designer.cs

............此处省略19个文件信息

评论

共有 条评论