private void VoiceLang_Changed() { if (sdkLib == null || ConnectionStatus == null) { } else { if (sdkLib.GetStatus() == eBeamSDKLib.PEN_DATA_READY && ConnectionStatus.Text.CompareTo("DATA READY") == 0) { if (voiceLang == null) { return; } var comboBoxItem = voiceLang.SelectedItem; if (comboBoxItem == null) { return; } var content = (comboBoxItem as ComboBoxItem).Name; if (content != null) { int audioLang = GetDeviceVoiceLanguage(content); sdkLib.setAudioLang(audioLang); } } } }
private void StopButton_Click() { if (sdkLib == null) { } else { if (sdkLib.GetStatus() == eBeamSDKLib.PEN_DATA_STOP) { sdkLib.Resume(); } else { sdkLib.Stop(); } } }