示例#1
0
        private void button6_Click(object sender, EventArgs e)
        {
            //停止监听
            LmiScanner scanner = LmiScanner.intance();

            scanner.StopListen();
        }
示例#2
0
        private void button5_Click(object sender, EventArgs e)
        {
            //开始监听
            LmiScanner scanner = LmiScanner.intance();

            scanner.StartListen();
        }
示例#3
0
        private void button3_Click(object sender, EventArgs e)
        {
            //拍照
            LmiScanner scanner = LmiScanner.intance();

            scanner.SoftTrigger();
        }
示例#4
0
        private void button2_Click(object sender, EventArgs e)
        {
            //析构相机
            LmiScanner scanner = LmiScanner.intance();

            scanner.Dispose();
        }
示例#5
0
 /// <summary>
 /// 单实例
 /// </summary>
 /// <returns></returns>
 public static LmiScanner intance()
 {
     if (obj == null)
     {
         obj = new LmiScanner();
     }
     return(obj);
 }
示例#6
0
        private void button4_Click(object sender, EventArgs e)
        {
            //序列号初始化相机
            LmiScanner scanner = LmiScanner.intance();

            scanner.InitCamera(51793);
            scanner.UseJob("TEST.job");
            scanner.StartListen();
        }
示例#7
0
        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();
        }
示例#8
0
        private void Form1_Load(object sender, EventArgs e)
        {
            LmiScanner scanner = LmiScanner.intance();

            scanner.ActGetBit = onDataPicture;
        }