Exemplo n.º 1
0
 /// <summary>
 /// Constructor which sets commands of ICommand interface to be used by SongBarView.
 /// </summary>
 public SongBarViewModel()
 {
     SongController.LoadDefaultSong();
     changeIconCommand = new Command(() =>
     {
         SetNewPath();
         ChangeMusicStatus();
     });
 }
Exemplo n.º 2
0
 /// <summary>
 /// Changes the status of the player.
 /// </summary>
 void ChangeMusicStatus()
 {
     if (_iconSelector)
     {
         SongController.PlaySong();
     }
     else
     {
         SongController.PauseSong();
     }
 }