public void Terminer_partie() // Fonction appeler lorsque la partie est terminée (par le chronometre ou l'ordre reçu du sous-système médaillon). { timerchrono.Stop(); Window_fin Fen = new Window_fin(); Fen.ShowDialog(); }
void timerchrono_Tick(object sender, EventArgs e) //Fonction du chronomètre : { if (time > 0) { time--; TBCountDown.Text = string.Format("00:{00}:{1}", time / 60, time % 60); } else { timerchrono.Stop(); //Arrête immédiatement le chronometre et le bloque Window_fin Fen = new Window_fin(); Fen.ShowDialog(); } }