示例#1
0
 //bouton nouvelle partie
 private void enterNewGame_Click(object sender, EventArgs e)
 {
     //quand on click sur new game on fait apparaitre le premier barModule1 et disparaitre le boutton "new game"
     actualiserLesVariables(heure, argent, alcool);
     if (!panel.Controls.Contains(barModule1.Instance))
     {
         panel.Controls.Add(barModule1.Instance);
         barModule1.Instance.Dock = DockStyle.Fill;
         barModule1.Instance.BringToFront();
         Form1 thisForm = this;
         description.Text = "Bienvenue au Zyhto, que veux-tu faire?";
         enterNewGame.Hide();
         getMoneyButton.Show();
         progressBarAlcool.Show();
         progressBarArgent.Show();
         enjoyProgressBar.Show();
         ArgentText.Show();
         AlcoolText.Show();
         actualiser.Show();
         textBox1.Show();
     }
     else
     {
         barModule1.Instance.BringToFront();
     }
 }
示例#2
0
 //fonction créer pour le finalModule: permet de ne pas afficher un certain nombre de boutons
 public void hideForTheEnd()
 {
     otherBarButton.Hide();
     getMoneyButton.Hide();
     progressBarAlcool.Hide();
     progressBarArgent.Hide();
     enjoyProgressBar.Hide();
     ArgentText.Hide();
     actualiser.Hide();
     AlcoolText.Hide();
     textBox1.Hide();
 }