private void btnLancer_Click(object sender, RoutedEventArgs e) { if (cbJ1.SelectedItem != null && cbJ2.SelectedItem != null && ((Jedi)cbJ1.SelectedItem).ID != ((Jedi)cbJ2.SelectedItem).ID) { TournoiViewer tv = new TournoiViewer(t,Auto, ((Jedi)cbJ1.SelectedItem).ID, ((Jedi)cbJ2.SelectedItem).ID); tv.ShowDialog(); Close(); } }
private void btnLancer_Click(object sender, RoutedEventArgs e) { if (cbJ1.SelectedItem != null && cbJ2.SelectedItem != null && ((Jedi)cbJ1.SelectedItem).ID != ((Jedi)cbJ2.SelectedItem).ID) { TournoiViewer tv = new TournoiViewer(t, Auto, ((Jedi)cbJ1.SelectedItem).ID, ((Jedi)cbJ2.SelectedItem).ID); tv.ShowDialog(); Close(); } }