public void LoadAll() { try { PlayersViewModel.LoadPlayersViewModel(); PlayersView.ViewPlayers.Refresh(); } catch (Exception) { throw new Exception("File playersList.xml not found"); } try { TeamViewModel.LoadTeamViewModel(); TeamsView.ViewTeams.Refresh(); } catch (Exception) { throw new Exception("File teamsList.xml not found"); } try { RefereesViewModel.LoadRefereesViewModel(); RefereeView.ViewReferees.Refresh(); } catch (Exception) { throw new Exception("File refereesList.xml not found"); } try { TournamentViewModel.LoadViewModel(); TournamentView.Refresh(); } catch (Exception) { throw new Exception("File tournamentsList.xml not found"); } }