//contructor
        public CurrentSongViewModel(PlayerEngineModel playerModel)
        {
            _player = playerModel.MediaPlayer;
            _controls = _player.controls;

            IsPlaying = false;
            HasPlayed = false;

            PlayPauseCommand = new PlayPauseCommand(this);
            StopCommand = new StopCommand(this);
        }
 private void StopExecute(object sender, ExecutedRoutedEventArgs e)
 {
     var cmd = new StopCommand(MainWindowViewModel.Instance.CurrentSong);
     cmd.Execute();
 }