示例#1
0
        void ButtonClicked(object sender, EventArgs e)
        {
            Button   button = sender as Button;
            AudioObj param  = (AudioObj)button.CommandParameter;

            Communication.SendCommand(param.Command, param.IdAudio);
        }
示例#2
0
        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;
            }
        }