protected void CheckForEdsdkEvents()
 {
     EDSDK.EdsGetEvent();
     if (this.unhandledCameraErrorOccurred)
     {
         throw new Exception("Unhandled camera error.");
     }
 }
示例#2
0
文件: Program.cs 项目: e23882/EDSDK
 static void CallEvent()
 {
     WaitForEvent = true;
     while (WaitForEvent)
     {
         EDSDK.EdsGetEvent();
         Thread.Sleep(200);
     }
 }
 protected override void Close()
 {
     if (CameraHandler != null)
     {
         EDSDK.EdsGetEvent();
         CameraHandler.CloseSession();
         CameraHandler.Dispose();
         CameraHandler = null;
     }
 }
示例#4
0
 static void CallEvent()
 {
     WaitForEvent = true;
     while (WaitForEvent)
     {
         EDSDK.EdsGetEvent();
         Thread.Sleep(200);
         string text = CheckTextFile().ToLower();
         if (text == "ready")
         {
             WaitForEvent = false;
         }
     }
 }