//------------------------------------------------------------------------------------------------- private void Button_DisConnect_Click(object sender, RoutedEventArgs e) { if (m_nComType == 0) { m_bConnect = false; mc_Acs.fn_CloseACS(); } else { m_bConnect = false; mc_Acs.fn_CloseSimulatorACS(); } }