예제 #1
0
        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;
                }
            }
        }
예제 #2
0
 private void updateListTeamAndPilotsUnasignedTeam()
 {
     lsvTeams.ItemsSource = TeamsDB.getTeams();
     gdvPilotsUnasignedTeam.ItemsSource = PilotDB.getPilotsUnasignedTeam();
 }