private void initializeCamera() { try { imaqdxSession = new ImaqdxSession(cameraName); } catch (ImaqdxException e) { MessageBox.Show(e.Message); throw new ImaqdxException(); } }