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();
|
|
|
|
|
|
|
|
|
|
scan.initDriver();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void button1_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|