• 大小: 0.03M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: C#
  • 标签: 电子秤  电子  

资源简介


资源截图

代码片段和文件信息

using System;
using System.IO.Ports;
using System.Windows.Forms;

namespace ScaleReader
{
    public partial class FrmMain : Form
    {
        private Rs232 _rs232;

        public FrmMain()
        {
            InitializeComponent();
        }

        private void FrmMain_Load(object sender EventArgs e)
        {
            ddlParity.SelectedIndex = 0;
            ddlStopbits.SelectedIndex = 1;
            ddlBaudrate.SelectedIndex = 0;

            ddlPort.DataSource = SerialPort.GetPortNames();
            if (ddlPort.Items.Count > 0)
            {
                ddlPort.SelectedIndex = 0;
            }
        }

        private static void Rs232_ExecuteResponse(string response)
        {
            SendKeys.Send(response);
        }

        private void btnStartStop_Click(obje

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-03-05 08:10  ScaleReader-master\
     文件        5582  2019-03-05 08:10  ScaleReader-master\.gitignore
     文件          93  2019-03-05 08:10  ScaleReader-master\README.md
     文件        1120  2019-03-05 08:10  ScaleReader-master\ScaleReader.sln
     目录           0  2019-03-05 08:10  ScaleReader-master\ScaleReader\
     文件        9871  2019-03-05 08:10  ScaleReader-master\ScaleReader\FrmMain.Designer.cs
     文件        1823  2019-03-05 08:10  ScaleReader-master\ScaleReader\FrmMain.cs
     文件       62476  2019-03-05 08:10  ScaleReader-master\ScaleReader\FrmMain.resx
     文件         503  2019-03-05 08:10  ScaleReader-master\ScaleReader\Program.cs
     目录           0  2019-03-05 08:10  ScaleReader-master\ScaleReader\Properties\
     文件        1293  2019-03-05 08:10  ScaleReader-master\ScaleReader\Properties\AssemblyInfo.cs
     文件        2764  2019-03-05 08:10  ScaleReader-master\ScaleReader\Properties\Resources.Designer.cs
     文件        5496  2019-03-05 08:10  ScaleReader-master\ScaleReader\Properties\Resources.resx
     文件        1068  2019-03-05 08:10  ScaleReader-master\ScaleReader\Properties\Settings.Designer.cs
     文件         242  2019-03-05 08:10  ScaleReader-master\ScaleReader\Properties\Settings.settings
     文件        6521  2019-03-05 08:10  ScaleReader-master\ScaleReader\RS232.cs
     文件        3971  2019-03-05 08:10  ScaleReader-master\ScaleReader\ScaleReader.csproj
     文件       38078  2019-03-05 08:10  ScaleReader-master\ScaleReader\logo.ico

评论

共有 条评论