Ejemplo n.º 1
0
        public void AddSong()
        {
            SongViewModel songViewModel = new SongViewModel(SongsModel, null);

            ((App)Application.Current).WindowService.ShowDialog(songViewModel);
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(NoSongs)));
        }
Ejemplo n.º 2
0
 public void EditSong(Song song)
 {
     if (song != null)
     {
         SongViewModel songViewModel = new SongViewModel(SongsModel, song);
         ((App)Application.Current).WindowService.ShowDialog(songViewModel);
     }
     UpdateFilter();
     PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(NoSongs)));
 }