/// <summary>
 /// private void recommencer_Click(object sender, EventArgs e)
 ///
 /// Cette fonction contrôle le bouton "Recommencer"
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void recommencer_Click(object sender, EventArgs e)
 {
     _fenetre.AssignerEstTerminee(false);
     NativeFunction.arreterSons();
     NativeFunction.demarrerPartie();
     Dispose();
 }
 /// <summary>
 /// private void recommencer_Click(object sender, EventArgs e)
 ///
 /// Cette fonction contrôle le bouton "Recommencer"
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void recommencer_Click(object sender, EventArgs e)
 {
     _fenetre.AssignerEstTerminee(false);
     NativeFunction.arreterSons();
     EventManager.Instance.Notice(new EndGameEvent(EndGameType.Dead, false));
     NativeFunction.demarrerPartie();
     Dispose();
 }
 /// <summary>
 /// private void menuPrincipal_Click(object sender, EventArgs e)
 ///
 /// Cette fonction contrôle le bouton "Menu principal"
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void menuPrincipal_Click(object sender, EventArgs e)
 {
     _fenetre.Hide();
     NativeFunction.arreterSons();
     // Todo: vérifier transition
     //Program.afficherMenuPrincipal();
     EventManager.Instance.Notice(new EndGameEvent(EndGameType.Dead));
     Dispose();
 }
Esempio n. 4
0
        /// <summary>
        /// Called after EndGame
        /// </summary>
        public void Exit()
        {
            NativeFunction.arreterSons();
            cts.Cancel();
            OnlineSession.TerminateSession();

            _windowOpengl?.HideWinform();

            Program.MainWindow.Show();
        }
 public void Exit()
 {
     NativeFunction.arreterSons();
     Program.MainWindow.Show();
 }