private void icImagingControl1_DeviceLost(object sender, TIS.Imaging.ICImagingControl.DeviceLostEventArgs e) { // We BeginInvoke this so that showing the modal dialog does not block actually closing the device in IC BeginInvoke(new Action(() => DeviceLost())); }
private void CameraCtrl_DeviceLost(object sender, TIS.Imaging.ICImagingControl.DeviceLostEventArgs e) { BeginInvoke(new DeviceLostDelegate(ref DeviceLost)); }