Пример #1
0
        public void AddSong()
        {
            SongViewModel songViewModel = new SongViewModel(SongsModel, null);

            ((App)Application.Current).WindowService.ShowDialog(songViewModel);
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(NoSongs)));
        }
Пример #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)));
 }