- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
q = Convert.ToString(a.ToString() + b.ToString() + c.ToString() + d.ToString() + f.ToString() + g.ToString() + h.ToString() + j.ToString() + k.ToString() + l.ToString());
int a = int.Parse(textBox2.Text[0].ToString());
int b = int.Parse(textBox2.Text[1].ToString());
int c = int.Parse(textBox2.Text[2].ToString());
int d = int.Parse(textBox2.Text[3].ToString());
int f = int.Parse(textBox2.Text[4].ToString());
int g = int.Parse(textBox2.Text[5].ToString());
int h = int.Parse(textBox2.Text[6].ToString());
int j = int.Parse(textBox2.Text[7].ToString());
int k = int.Parse(textBox2.Text[8].ToString());
int l = int.Parse(textBox2.Text[9].ToString());
Random rnd = new Random();
int a = rnd.Next(0, 2);
int b = rnd.Next(0, 2);
int c = rnd.Next(0, 2);
int d = rnd.Next(0, 2);
int f = rnd.Next(0, 2);
int g = rnd.Next(0, 2);
int h = rnd.Next(0, 2);
int j = rnd.Next(0, 2);
int k = rnd.Next(0, 2);
int l = rnd.Next(0, 2);
private void DoWork(int a, int b, int c, int d, int f, int g, int h, int j, int k, int l)
private void ResetState()
{
pictureBox5.Visible = false;
pictureBox6.Visible = false;
pictureBox7.Visible = false;
pictureBox8.Visible = false;
pictureBox9.Visible = false;
pictureBox2.Visible = false;
pictureBox3.Visible = false;
pictureBox4.Visible = false;
pictureBox10.Visible = false;
pictureBox11.Visible = false;
pictureBox12.Visible = false;
pictureBox13.Visible = false;
pictureBox14.Visible = false;
pictureBox15.Visible = false;
pictureBox16.Visible = false;
pictureBox17.Visible = false;
pictureBox18.Visible = false;
pictureBox19.Visible = false;
pictureBox20.Visible = false;
pictureBox27.Visible = false;
pictureBox28.Visible = false;
pictureBox29.Visible = false;
pictureBox31.Visible = false;
pictureBox32.Visible = false;
pictureBox33.Visible = false;
pictureBox34.Visible = false;
pictureBox35.Visible = false;
pictureBox36.Visible = false;
pictureBox30.Visible = false;
label2.Visible = false;
label4.Visible = false;
textBox2.Clear();
textBox1.Clear();
}
if (((b == 0 && (a == 1)) || ((b == 0) && (a == 0)) || ((b == 1) && (a == 0)) || ((b == 1) && (a == 1))))
{
if ((b == 0) && (pictureBox3.Visible)) { pictureBox6.Visible = Enabled; }
if ((b == 0) && (pictureBox2.Visible)) { pictureBox5.Visible = Enabled; }
if ((b == 1) && (pictureBox2.Visible)) { pictureBox6.Visible = Enabled; pictureBox4.Visible = Enabled; }
if ((b == 1) && (pictureBox3.Visible)) { pictureBox5.Visible = Enabled; pictureBox4.Visible = Enabled; }
}
//желательно чтоб здесь была пауза
if (((c == 0 && (pictureBox5.Visible)) || ((c == 0) && (pictureBox6.Visible)) || ((c == 1) && (pictureBox5.Visible)) || ((c == 1) && (pictureBox6.Visible))))
{
if ((c == 0) && (pictureBox5.Visible)) { pictureBox7.Visible = Enabled; }
if ((c == 0) && (pictureBox6.Visible)) { pictureBox8.Visible = Enabled; }
if ((c == 1) && (pictureBox5.Visible)) { pictureBox8.Visible = Enabled; pictureBox29.Visible = Enabled; }
if ((c == 1) && (pictureBox6.Visible)) { pictureBox7.Visible = Enabled; pictureBox29.Visible = Enabled; }
}
//желательно чтоб здесь была пауза
if (((d == 0 && (c == 1)) || ((d == 0) && (c == 0)) || ((d == 1) && (c == 0)) || ((d == 1) && (c == 1))))
{
if ((d == 0) && (pictureBox7.Visible)) { pictureBox9.Visible = Enabled; }
if ((d == 0) && (pictureBox8.Visible)) { pictureBox10.Visible = Enabled; }
if ((d == 1) && (pictureBox7.Visible)) { pictureBox10.Visible = Enabled; pictureBox30.Visible = Enabled; }
if ((d == 1) && (pictureBox8.Visible)) { pictureBox9.Visible = Enabled; pictureBox30.Visible = Enabled; }
}