예제 #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);
        }
예제 #2
0
 private void StopExecute(object sender, ExecutedRoutedEventArgs e)
 {
     var cmd = new StopCommand(MainWindowViewModel.Instance.CurrentSong);
     cmd.Execute();
 }