Beispiel #1
0
        private void Undo_Click(object sender, EventArgs e)
        {
            Undo.Hide();
            for (int i = 0; i < 7; i++)
            {
                if (saved[1][i] == 0)
                {
                    Reset(1, i);
                }
                else
                {
                    Columna1[i].Text      = saved[1][i].ToString();
                    Columna1[i].BackColor = Colores[saved[1][i] % 10];
                }

                if (saved[2][i] == 0)
                {
                    Reset(2, i);
                }
                else
                {
                    Columna2[i].Text      = saved[2][i].ToString();
                    Columna2[i].BackColor = Colores[saved[2][i] % 10];
                }


                Next.Text      = saved[0][0].ToString();
                Next.BackColor = Colores[saved[0][0] % 10];
                turno          = saved[0][1];
                score          = saved[0][2];
            }
            if (turno == 1)
            {
                RightArrow.Hide();
                LeftArrow.Show();
            }
            else
            {
                RightArrow.Show();
                LeftArrow.Hide();
            }
            label1.Text = score.ToString();
        }
Beispiel #2
0
 private void Restart()
 {
     pictureBox2.Hide();
     pictureBox3.Hide();
     pictureBox4.Show();
     //pictureBox5.Show();
     Undo.Hide();
     label1.Hide();
     label4.Hide();
     Next.Hide();
     RightArrow.Hide();
     LeftArrow.Hide();
     for (int i = 0; i < 7; i++)
     {
         this.Controls.Remove(Columna1[i]);
         this.Controls.Remove(Columna2[i]);
     }
     pictureBox1.Show();
 }