private void _btn_ge_server_Click(object sender, EventArgs e) { if (_btn_ge_server.Checked == false) { try { kml_list = new Kml.KmlListener(_serial); kml_list.Start(); _btn_goto_ge.Enabled = true; } catch (Exception ex) { MessageBox.Show(ex.ToString(), "Error"); } _btn_ge_server.Checked = true; } else { kml_list.Stop(); _btn_ge_server.Checked = false; _btn_goto_ge.Enabled = false; } }