private void Voiture_MouseLeftButton(object sender, MouseButtonEventArgs e) { Image myImage = sender as Image; if (myImage != null) { MessageBox.Show(myImage.Name + " selectionnée"); var gamestart = new Game_Car(this); gamestart.VoitureGame.Source = myImage.Source; Panel.SetZIndex(gamestart.VoitureGame, 100); gamestart.Show(); this.Hide(); } }
public FenetreScore(Game_Car _Game, MainWindow _demarrage) : this() { Game = _Game; demarrage = _demarrage; }