void ButtonClicked(object sender, EventArgs e) { Button button = sender as Button; AudioObj param = (AudioObj)button.CommandParameter; Communication.SendCommand(param.Command, param.IdAudio); }
void ButtonClicked(object sender, EventArgs e) { Button button = sender as Button; AudioObj param = (AudioObj)button.CommandParameter; switch (display) { case Screen.SeriesTV: Global.ForBinding.IsPlaying = true; Communication.SendCommand(R2Command.PlaySerieSound, param.IdAudio, param.IdBank); break; } }