Beispiel #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (listBox2.Text == "" && listBox3.Text == "" && listBox4.Text == "")
     {
         MessageBox.Show("Надо ответить на вопрос", "Заголовок", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     else if ((listBox2.Items[0] == "Денежная наличность") && (listBox3.Items[0] == "Ценности") && (listBox4.Items[0] == "Драгоценные металлы"))
     {
         MessageBox.Show("Вы ответили правильно", "Заголовок", MessageBoxButtons.OK, MessageBoxIcon.Information);
         listBox1.Enabled = false;
         Class1.massiv(4, 1);
         Form24 f = new Form24();
         this.Hide();
         f.ShowDialog();
         Close();
     }
     else
     {
         MessageBox.Show("Вы ответили неправильно", "Заголовок", MessageBoxButtons.OK, MessageBoxIcon.Information);
         listBox1.Enabled = false;
         Class1.massiv(4, 0);
         Form24 f = new Form24();
         this.Hide();
         f.ShowDialog();
         Close();
     }
 }
        private void button11_Click(object sender, EventArgs e)
        {
            Form24 f = new Form24();

            f.ShowDialog();
        }