Exemplo n.º 1
0
        public void ShowMessageBox(string str)
        {
            string            message = "Gefeliciteerd je bent klaar an hebt " + str + " punten behaald!";
            string            caption = "Finished";
            MessageBoxButtons buttons = MessageBoxButtons.YesNo;
            DialogResult      result;

            // Displays the MessageBox.
            result = MessageBox.Show(message + "\n" + "Will je opnieuw proberen?", caption, buttons);
            if (result == System.Windows.Forms.DialogResult.Yes)
            {
                frmTopo frmTopo = new frmTopo();
                frmTopo.Show();
                this.Dispose(false);
            }
            else if (result == System.Windows.Forms.DialogResult.No)
            {
                this.Close();
            }
        }
Exemplo n.º 2
0
        //Klik op Button Topospel
        private void btnTopoSpel_Click(object sender, EventArgs e)
        {
            frmTopo frt = new frmTopo();

            frt.Show();
        }