示例#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();
     });
 }
示例#2
0
 /// <summary>
 /// Changes the status of the player.
 /// </summary>
 void ChangeMusicStatus()
 {
     if (_iconSelector)
     {
         SongController.PlaySong();
     }
     else
     {
         SongController.PauseSong();
     }
 }