Exemplo n.º 1
0
 public void SaveAll()
 {
     try
     {
         PlayersViewModel.SavePlayersViewModel();
     }
     catch (Exception)
     {
         throw new Exception("File playersList.xml not found");
     }
     try
     {
         TeamViewModel.SaveTeamViewModel();
     }
     catch (Exception)
     {
         throw new Exception("File teamsList.xml not found");
     }
     try
     {
         RefereesViewModel.SaveRefereesViewModel();
     }
     catch (Exception)
     {
         throw new Exception("File refereesList.xml not found");
     }
     try
     {
         TournamentViewModel.SaveViewModel();
     }
     catch (Exception)
     {
         throw new Exception("File tournamentsList.xml not found");
     }
 }