void OnSongSended(SongListViewModel source, SongViewModel songViewModel)
        {
            Song = songViewModel;

            SongsList.Add(Song);

            PreparePresentation();

            MessagingCenter.Unsubscribe <SongListViewModel, SongViewModel>
                (this, Events.SendSongToPresentation);
        }
Example #2
0
        private async void OnSongSended(SongListViewModel source, SongViewModel song)
        {
            if (song != null)
            {
                ItsDetailSongPage = true;
                Song = await songRepository.GetSongWithChildren(song.Id);

                Title     = Song.Title;
                Artist    = Song.Artist;
                Text      = Song.Text;
                Playlists = Song.Playlists;
                SongKey   = Song.SongKey;
                Chords    = Song.Chords;

                if (!String.IsNullOrWhiteSpace(Chords))
                {
                    AddChords = true;
                    PrepareTextWithChordsList();
                }
            }
            PageTitle = AppResources.SongAddAndDetail_SongDetail;
            MessagingCenter.Unsubscribe <SongListViewModel, SongViewModel>(this, Events.SendSong);
        }