Beispiel #1
0
        private void PlayerAction(string action)
        {
            switch (action)
            {
            case "⏮":
                App.Current.Dispatcher.Invoke((Action) delegate { player.Previous(); });
                break;

            case "⏯":
                App.Current.Dispatcher.Invoke((Action) delegate { player.PlayPause(); });
                break;

            case "⏭":
                App.Current.Dispatcher.Invoke((Action) delegate { player.Next(); });
                break;

            case "+":
                App.Current.Dispatcher.Invoke((Action) delegate { player.IncreaseVolume(); });
                break;

            case "-":
                App.Current.Dispatcher.Invoke((Action) delegate { player.DicreaseVolume(); });
                break;
            }
        }