////////////////////////////////////////////////////////////////////////
 ///
 /// @fn public void RecommencerPartie()
 /// @brief Recommence la partie.
 /// @return Aucune.
 ///
 ////////////////////////////////////////////////////////////////////////
 public void RecommencerPartie()
 {
     resetConfig();
     FonctionsNatives.purgeAll();
     FonctionsNatives.ouvrirXML(map, map.Capacity);
     FonctionsNatives.resetNombreBillesCourantes();
     FonctionsNatives.construireListesPalettes();
     FonctionsNatives.mettreAJourListeBillesEtNoeuds();
 }
 ////////////////////////////////////////////////////////////////////////
 ///
 /// @fn private void ProchainePartie()
 /// @brief Chargement de la prochaine partie.
 /// @return Aucune.
 ///
 ////////////////////////////////////////////////////////////////////////
 private void ProchainePartie()
 {
     FonctionsNatives.arreterToutSons();
     boolTemp   = false;
     peutAnimer = false;
     map        = new StringBuilder(myMaps[currentZone]);
     nextMap    = new StringBuilder(map.ToString());
     nextMap.Remove(nextMap.Length - 4, 4);
     System.Threading.Thread.Sleep(500);
     zInfo = new ZoneInfo(Path.GetFileName(nextMap.ToString()), FonctionsNatives.obtenirDifficulte(map, map.Capacity).ToString(), true);
     Program.myCustomConsole.Hide();
     this.Hide();
     zInfo.ShowDialog();
     this.Show();
     Program.myCustomConsole.Show();
     if (Program.mMenu.modeJeuMain != null)
     {
         FonctionsNatives.arreterToutSons();
         Program.myCustomConsole.Show();
         Program.mMenu.modeJeuMain.Focus();
     }
     FonctionsNatives.ouvrirXML(map, map.Capacity);
     FonctionsNatives.construireListesPalettes();
     FonctionsNatives.resetNombreDePointsDePartie();
     FonctionsNatives.resetNombreBillesCourantes();
     FonctionsNatives.mettreAJourListeBillesEtNoeuds();
     currentZone++;
     peutAnimer = true;
     boolTemp   = true;
     FonctionsNatives.bouclerSon(bgm, bgm.Length);
     FonctionsNatives.ajusterVolume(bgm, bgm.Length, 90);
     FonctionsNatives.jouerSon(bgm, bgm.Length);
     /// La création de l'état s'occupe d'appeler resetConfig
     etat = new EtatJeuDebutDePartie(this);
     // Il faut changer le mode car le traitement de début est fini
     etat           = new EtatJeuJouer(this);
     label_Nom.Text = "Nom: " + Path.GetFileNameWithoutExtension(map.ToString());
     if (nbZones == 1)
     {
         this.Text = "Partie Rapide: " + Path.GetFileNameWithoutExtension(map.ToString());
     }
     if (nbZones > 1)
     {
         this.Text = "Campagne: " + Path.GetFileNameWithoutExtension(map.ToString());
     }
 }