xxe 2 years ago
parent
commit
0393287eb9
2 changed files with 7 additions and 2 deletions
  1. +4
    -2
      test/Form1.cs
  2. +3
    -0
      test/test.csproj

+ 4
- 2
test/Form1.cs View File

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


private void button4_Click(object sender, EventArgs e) 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); MessageBox.Show(res.ResMes);
} }
List<int> add = new List<int>(); List<int> add = new List<int>();
@@ -68,7 +70,7 @@ namespace test
// ³õʼ»¯ // ³õʼ»¯
UHF_RS485_Helper.GetInstance().Open(new SerialParam UHF_RS485_Helper.GetInstance().Open(new SerialParam
{ {
PortName = "COM8",
PortName = "COM3",
BaudRate = 57600, BaudRate = 57600,
DataBits = 8 DataBits = 8
}); });


+ 3
- 0
test/test.csproj View File

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


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


Loading…
Cancel
Save