Exemple #1
0
        public override void Execute(List <Tuple <string, string> > param)
        {
            switch (param[0].Item1)
            {
            case "playpause":
            {
                player.PlayPause();
                break;
            }

            case "stop":
            {
                player.Stop();
                break;
            }

            case "next":
            {
                player.NextTitle();
                break;
            }

            case "prev":
            {
                player.PreviouseTitle();
                break;
            }

            case "louder":
            {
                player.IncreaseVolume();
                break;
            }

            case "quieter":
            {
                player.DecreaseVolume();
                break;
            }
            }
        }