예제 #1
0
        //根据光亮值修改摄像机   线程
        private void StartSetCam(Properties.Settings setting)
        {
            if (thread != null)
            {
                thread.Abort();
            }
            CameraUpdateSettings cus = new CameraUpdateSettings(setting.ComName, (BrightType)setting.BrightMode, setting.CurIp);

            thread = new Thread(new ParameterizedThreadStart(cus.ReadPort));
            thread.IsBackground = true;
            thread.Start();
        }
예제 #2
0
 //根据光亮值修改摄像机   线程
 private void StartSetCam(Properties.Settings setting)
 {
     if (thread != null)
     {
         thread.Abort();
     }
     CameraUpdateSettings cus = new CameraUpdateSettings(setting.ComName, (BrightType)setting.BrightMode, setting.CurIp);
     thread = new Thread(new ParameterizedThreadStart(cus.ReadPort));
     thread.IsBackground = true;
     thread.Start();
 }