public void initialize(String fileLocation) { BalanceAtBats = new List <Dictionary <int, int> >(); // Load Stored data from database file StoredLineups = LineupPersistence.loadDatabase(); TeamReportFile = new SOMTeamReportFile(fileLocation, StoredLineups, new Config()); TeamReportFile.parse(); CompleteListOfTeams = TeamReportFile.getTeams(); TeamLineupData = TeamInformation.loadDatabase(); }
public void saveDatabase() { TeamInformation.saveDatabase(TeamLineupData); }