// ******************** BOUTON PANNEAU ********************** // ******************** BOUTON PANNEAU RECOMMENCER ********************** private void boutonReinitialiser_Click(object sender, EventArgs e) { if (sender is Button) { if (!simulationLancee) { stopSimulation = true; pause = false; boutonDepart.Visible = true; boutonRecommencer.Visible = false; label1.Visible = true; ListChoixDuree.Visible = true; ListNbrPas.Visible = true; boutonPause.Visible = false; boutonReprise.Visible = false; cpClic = 0; rang = 0; DD.ReinitialiserDamier(); } else { stopSimulation = true; pause = false; boutonDepart.Visible = true; boutonRecommencer.Visible = false; label1.Visible = true; ListChoixDuree.Visible = true; ListNbrPas.Visible = true; boutonPause.Visible = false; boutonReprise.Visible = false; cpClic = 0; rang = 0; DD.ReinitialiserDamier(); } } }
// ******************** BOUTON PANNEAU RECOMMENCER ********************** private void boutonRecommencer_Click(object sender, EventArgs e) { if (sender is Button) { boutonDepart.Visible = true; boutonRetour.Visible = false; labelVict.Visible = false; victoire = false; boutonSolution.Visible = false; cpClic = 0; cpRtClic = 0; entamer = false; DD.ReinitialiserDamier(); InitialiserBouton(); //reinitialiser bouton de depart depCol = -1; depLig = -1; monBoutonDep = null; boutonRecommencer.Visible = false; } }