Пример #1
0
        // Handle the click event of the options button
        private void pictureBoxOptions_Click(object sender, EventArgs e)
        {
            // Hide the menu
            pnlMenu.Visible = false;

            OptionsDialog Options = new OptionsDialog(true);
            Options.ShowDialog();

            if (Options.getClosed())
            {
                // Close the options dialog
                Options.Close();

                // Show the menu
                pnlMenu.Visible = true;
            }
        }
Пример #2
0
        private void Options()
        {
            //Verberg hoofdmenu
            PlayBtn.Visible = false;
            CreateLvlBtn.Visible = false;
            HighscoreBtn.Visible = false;
            optionBtn.Visible = false;
            exitBtn.Visible = false;

            //Aanmaken optionsdialog, hoofdprogramma wordt hierdoor stilgezet terwijl gewacht wordt op reactie
            OptionsDialog Options = new OptionsDialog(false);
            Options.ShowDialog();
            if (Options.getChangeFullScreen())
            {
                GaTerugnaarMenu();

                if (Options.getClosed())
                {
                    Options.Close();
                    Options = null;
                }

            }
            else if (Options.getClosed())
            {
                Options.Close();
                Options = null;
            }
            PlayBtn.Visible = true;
            CreateLvlBtn.Visible = true;
            HighscoreBtn.Visible = true;
            optionBtn.Visible = true;
            exitBtn.Visible = true;
        }