private void Form1_FormClosed(object sender, FormClosedEventArgs e) { try { KSJGigeVisionApi.KSJGIGEVISION_UnInit(); } catch (Exception ex) { MessageBox.Show(ex.Message); } Application.Exit(); }
private void Form1_FormClosed(object sender, FormClosedEventArgs e) { try { bool bCheck = PreviewcheckBox.Checked; if (bCheck) { PreviewcheckBox.Checked = false; } KSJGigeVisionApi.KSJGIGEVISION_UnInit(); } catch (Exception ex) { MessageBox.Show(ex.Message); } Application.Exit(); }