xxe 2 år sedan
förälder
incheckning
0393287eb9
2 ändrade filer med 7 tillägg och 2 borttagningar
  1. +4
    -2
      test/Form1.cs
  2. +3
    -0
      test/test.csproj

+ 4
- 2
test/Form1.cs Visa fil

@@ -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 Visa fil

@@ -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>


Laddar…
Avbryt
Spara