private void AddSongExecute() { try { AddSong addSong = new AddSong(Username); addSong.ShowDialog(); SongList = service.GetSongsOfUser(userLogedIn.UserID); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
private void AddSongExecute() { try { AddSong addsong = new AddSong(UserToView); addsong.ShowDialog(); SongsList = service.GetUserSongs(userToView.UserName); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
private void AddNewEmployeeExecute() { try { AddSong adding = new AddSong(user); adding.ShowDialog(); if ((adding.DataContext as AddSongViewModel).isUpdated == true) { playList = Service.Service.GetSongs(user.userId); } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
/// <summary> /// Executes the add Song command /// </summary> private void AddNewSongExecute() { try { AddSong addSong = new AddSong(); addSong.ShowDialog(); if ((addSong.DataContext as AddSongViewModel).IsUpdateSong == true) { SongList = service.GetAllSongs().ToList(); AllCurrentUsersSongs = service.GetAllSongsFromCurrentUser(LoggedUser.CurrentUser.UserID).ToList(); } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }