xxe 2 年之前
父節點
當前提交
0393287eb9
共有 2 個檔案被更改,包括 7 行新增2 行删除
  1. +4
    -2
      test/Form1.cs
  2. +3
    -0
      test/test.csproj

+ 4
- 2
test/Form1.cs 查看文件

@@ -1,4 +1,5 @@
using HKHelper;
using Snowflake.Core;
using System.Diagnostics;
using System.Text;
using UHFHelper;
@@ -47,7 +48,8 @@ namespace test

private void button4_Click(object sender, EventArgs e)
{
var res = UHFCardHelper.GetInstance().WriteCard(textBox1.Text);
string worker = new IdWorker(1, 1).NextId().ToString();// IDÉú³É
var res = UHFCardHelper.GetInstance().WriteCard(worker);
MessageBox.Show(res.ResMes);
}
List<int> add = new List<int>();
@@ -68,7 +70,7 @@ namespace test
// ³õʼ»¯
UHF_RS485_Helper.GetInstance().Open(new SerialParam
{
PortName = "COM8",
PortName = "COM3",
BaudRate = 57600,
DataBits = 8
});


+ 3
- 0
test/test.csproj 查看文件

@@ -15,6 +15,9 @@
<ProjectReference Include="..\UHFHelper\UHFHelper.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Snowflake.Core" Version="2.0.0" />
</ItemGroup>
<ItemGroup>
<Reference Include="UHFReader18CSharp">
<HintPath>..\lib\UHFReader18CSharp.dll</HintPath>


Loading…
取消
儲存