private void btn_Connect_Click(object sender, RoutedEventArgs e) { if (!btnConnectPressed) { Bluetooth.ConnectToBoard(); btnConnectPressed = true; } }