示例#1
0
        private void pictureBox13_Click(object sender, EventArgs e)
        {
            //aici se stabilește modul sonorului (cu sonor, respectiv fără) pentru pictureBox-ul din Slide-Show
            if (comboBox2.SelectedIndex == 0)
            {
                Class2.Muzica = 0;
            }
            else if (comboBox2.SelectedIndex == 1)
            {
                Class2.Muzica = 1;
            }
            //

            //alegerea Form-ului cu descrierea jocului la apăsarea pictureBox-ului
            if (i == 0) //Ultima Underworld
            {
                this.Hide();
                Form13 f13 = new Form13();
                f13.Show();
            }
            else if (i == 1) //Ultima Underworld II
            {
                this.Hide();
                Form15 f15 = new Form15();
                f15.Show();
            }
            else if (i == 2) //System Shock
            {
                this.Hide();
                Form17 f17 = new Form17();
                f17.Show();
            }
            else if (i == 3) //Flight Unlimited
            {
                this.Hide();
                Form19 f19 = new Form19();
                f19.Show();
            }
            else if (i == 4) //Terra Nova: Strike Force Centauri
            {
                this.Hide();
                Form20 f20 = new Form20();
                f20.Show();
            }
            else if (i == 5) //British Open Championship Golf
            {
                this.Hide();
                Form22 f22 = new Form22();
                f22.Show();
            }
            else if (i == 6) //Flight Unlimited 2
            {
                this.Hide();
                Form23 f23 = new Form23();
                f23.Show();
            }
            else if (i == 7) //Thief: The Dark Project
            {
                this.Hide();
                Form5 f5 = new Form5();
                f5.Show();
            }
            else if (i == 8) //System Shock 2
            {
                this.Hide();
                Form7 f7 = new Form7();
                f7.Show();
            }
            else if (i == 9) //Flight Unlimited 3
            {
                this.Hide();
                Form9 f9 = new Form9();
                f9.Show();
            }
            else if (i == 10) //Thief II: The Metal Age
            {
                this.Hide();
                Form10 f10 = new Form10();
                f10.Show();
            }
            //
        }