private void ChoixJedi_Click(object sender, RoutedEventArgs e) { if(SelectorJedi.SelectedItem!=null) { jediChoisi = ((JediModel)SelectorJedi.SelectedItem).Jedi; Jeux jeux = new Jeux(jediChoisi); jeux.Show(); this.Close(); } }
private void ChoixJedi_Click(object sender, RoutedEventArgs e) { if (SelectorJedi.SelectedItem != null) { jediChoisi = ((JediModel)SelectorJedi.SelectedItem).Jedi; Jeux jeux = new Jeux(jediChoisi); jeux.Show(); this.Close(); } }