private void lsvTeams_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (lsvTeams.SelectedItem != null) { crearTeamViewModel((TeamsDB)lsvTeams.SelectedItem); gdvPilotsUnasignedTeam.ItemsSource = PilotDB.getPilotsUnasignedTeam(); if (CircuitDB.getClosedRaces() > 0) { EstatForm = Estat.CURSA_TANCADA; } else { EstatForm = Estat.SENSE_CANVIS; } } }
private void updateListTeamAndPilotsUnasignedTeam() { lsvTeams.ItemsSource = TeamsDB.getTeams(); gdvPilotsUnasignedTeam.ItemsSource = PilotDB.getPilotsUnasignedTeam(); }