Ejemplo n.º 1
0
        //contructor
        public CurrentSongViewModel(PlayerEngineModel playerModel)
        {
            _player = playerModel.MediaPlayer;
            _controls = _player.controls;

            IsPlaying = false;
            HasPlayed = false;

            PlayPauseCommand = new PlayPauseCommand(this);
            StopCommand = new StopCommand(this);
        }
Ejemplo n.º 2
0
 private void PlayPauseExecute(object sender, ExecutedRoutedEventArgs e)
 {
     var cmd = new PlayPauseCommand(MainWindowViewModel.Instance);
     cmd.Execute(e.Parameter);
 }