private void button6_Click(object sender, EventArgs e) { //停止监听 LmiScanner scanner = LmiScanner.intance(); scanner.StopListen(); }
private void button5_Click(object sender, EventArgs e) { //开始监听 LmiScanner scanner = LmiScanner.intance(); scanner.StartListen(); }
private void button3_Click(object sender, EventArgs e) { //拍照 LmiScanner scanner = LmiScanner.intance(); scanner.SoftTrigger(); }
private void button2_Click(object sender, EventArgs e) { //析构相机 LmiScanner scanner = LmiScanner.intance(); scanner.Dispose(); }
/// <summary> /// 单实例 /// </summary> /// <returns></returns> public static LmiScanner intance() { if (obj == null) { obj = new LmiScanner(); } return(obj); }
private void button4_Click(object sender, EventArgs e) { //序列号初始化相机 LmiScanner scanner = LmiScanner.intance(); scanner.InitCamera(51793); scanner.UseJob("TEST.job"); scanner.StartListen(); }
private void button1_Click(object sender, EventArgs e) { //Ip地址初始化相机 LmiScanner scanner = LmiScanner.intance(); scanner.InitCamera("192.168.11.13"); scanner.UseJob("TEST.job"); scanner.StartListen(); }
private void Form1_Load(object sender, EventArgs e) { LmiScanner scanner = LmiScanner.intance(); scanner.ActGetBit = onDataPicture; }