コード例 #1
0
        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);
                    }
                }
            }
        }
コード例 #2
0
 private void StopButton_Click()
 {
     if (sdkLib == null)
     {
     }
     else
     {
         if (sdkLib.GetStatus() == eBeamSDKLib.PEN_DATA_STOP)
         {
             sdkLib.Resume();
         }
         else
         {
             sdkLib.Stop();
         }
     }
 }