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