protected void CheckForEdsdkEvents() { EDSDK.EdsGetEvent(); if (this.unhandledCameraErrorOccurred) { throw new Exception("Unhandled camera error."); } }
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; } }
static void CallEvent() { WaitForEvent = true; while (WaitForEvent) { EDSDK.EdsGetEvent(); Thread.Sleep(200); string text = CheckTextFile().ToLower(); if (text == "ready") { WaitForEvent = false; } } }