private void Form1_FormClosed(object sender, FormClosedEventArgs e) { if (reptile != null) { reptile.Stop(); } System.Environment.Exit(System.Environment.ExitCode); }
private void Form1_FormClosed(object sender, FormClosedEventArgs e) { try { reptile.Stop(); System.Environment.Exit(System.Environment.ExitCode); } catch (Exception ex) { } }