Exemplo n.º 1
0
        private void button10_Click(object sender, EventArgs e)
        {
            Film film = new Film();

            film.Hide();
            Film_ten film_p = new Film_ten();

            film_p.Show();
        }
Exemplo n.º 2
0
        private void Film_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyValue == (char)Keys.D1)
            {
                this.Hide();
                Film_one film = new Film_one();
                film.Show();
            }

            if (e.KeyValue == (char)Keys.D2)
            {
                this.Hide();
                Film_two film = new Film_two();
                film.Show();
            }

            if (e.KeyValue == (char)Keys.D3)
            {
                this.Hide();
                Film_three film = new Film_three();
                film.Show();
            }

            if (e.KeyValue == (char)Keys.D4)
            {
                this.Hide();
                Film_four film = new Film_four();
                film.Show();
            }

            if (e.KeyValue == (char)Keys.D5)
            {
                this.Hide();
                Film_five film = new Film_five();
                film.Show();
            }

            if (e.KeyValue == (char)Keys.D6)
            {
                this.Hide();
                Film_six film = new Film_six();
                film.Show();
            }

            if (e.KeyValue == (char)Keys.D7)
            {
                this.Hide();
                Film_seven film = new Film_seven();
                film.Show();
            }

            if (e.KeyValue == (char)Keys.D8)
            {
                this.Hide();
                Film_eight film = new Film_eight();
                film.Show();
            }

            if (e.KeyValue == (char)Keys.D9)
            {
                this.Hide();
                Film_nine film = new Film_nine();
                film.Show();
            }

            if (e.KeyValue == (char)Keys.D0)
            {
                this.Hide();
                Film_ten film = new Film_ten();
                film.Show();
            }

            if (e.KeyValue == (char)Keys.Escape)
            {
                Film film = new Film();
                Menu menu = new Menu();
                this.Hide();
                menu.Show();
            }
        }