public void AddSong() { SongViewModel songViewModel = new SongViewModel(SongsModel, null); ((App)Application.Current).WindowService.ShowDialog(songViewModel); PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(NoSongs))); }
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))); }