code_app/sdk/oldwebscan/demo/C#TestDemo/Form1.cs

30 lines
593 B
C#
Raw Permalink Normal View History

2022-11-18 01:12:13 +00:00
using DNScanner.Scan;
using System;
using System.Windows.Forms;
namespace WinFormsApp1
{
public partial class Form1 : Form
{
private static HgScan scan;
public Form1()
{
InitializeComponent();
scan = new HgScan();
2022-11-29 08:16:26 +00:00
2022-11-18 01:12:13 +00:00
}
private void button1_Click(object sender, EventArgs e)
{
2022-11-29 08:16:26 +00:00
scan.initDriver();
2022-11-18 01:12:13 +00:00
scan.initInstance();
scan.scanExec();
}
2022-11-19 03:49:41 +00:00
private void button2_Click(object sender, EventArgs e)
2022-11-18 01:12:13 +00:00
{
2022-11-19 03:49:41 +00:00
scan.stopscan();
2022-11-18 01:12:13 +00:00
}
}
}