, 나는 아이템과 콤보를 만들어 나는 항목은 내가 비주얼 스튜디오를 사용하고 하나 like this, or that.재생 소리가 나는 C# 프로그래밍에 새로 온
선택 할 때 소리를 재생하는 것을 원하는 2015 년
이 작동합니다 메소드 play1와 마찬가지로 play2
private void AudioComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (AudioComboBox.SelectedIndex == AudioComboBox.Items.IndexOf("Sali 3la Mohammed 1"))
{
play1();
}
else if (AudioComboBox.SelectedIndex == AudioComboBox.Items.IndexOf("Sali 3la Mohammed 2"))
{
play2();
}
}
private void play1()
{
}
private void play2()
{
}
무엇이 당신의 질문입니까? 일어날 필요가있는 것을 지정하십시오. –