private void rbHeadLed_Clicked(object sender, RoutedEventArgs e) { if (rbHeadLedTurnOff.IsChecked == true) { UBT.V2_SetHeadLED(0); } else if (rbHeadLedTurnOn.IsChecked == true) { UBT.V2_SetHeadLED(1); } }