Exemple #1
0
        private void btnAccept_Click(object sender, EventArgs e)
        {
            // open next dialog
            ShufflePlayer vForm = new ShufflePlayer();

            this.Hide();
            vForm.ShowDialog();
            this.Close();
        }
Exemple #2
0
        private void btnGo_Click(object sender, EventArgs e)
        {
            name = txtName.Text;
            int age = int.Parse(txtAge.Text);

            if (age >= 18)
            {
                // open next dialog
                ShufflePlayer vForm = new ShufflePlayer();
                this.Hide();
                vForm.ShowDialog();
                this.Close();
            }
            else
            {
                // restrict access to video player
                // MessageBox.Show("May contain inappropriate content not suitable for younger audiences.");
                // open next dialog
                Warning wForm = new Warning();
                this.Hide();
                wForm.ShowDialog();
                this.Close();
            }
        }