public static void Disconnect() { ccdsoftCamera tsxr = new ccdsoftCamera(); try { tsxr.Asynchronous = 0; } catch (Exception ex) { MessageBox.Show(ex.Message); } try { tsxr.rotatorDisconnect(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }