Esempio n. 1
0
        private void btnDone_Click(object sender, EventArgs e)
        {
            Database db = new Database();

            db.SaveHighscore();
            _instance           = null;
            User.Instance.Score = 0;
            App app = (App)Parent.Parent;

            app.QuizConfig();
        }
Esempio n. 2
0
        private void btnCancel_Click(object sender, EventArgs e)
        {
            DialogResult dialogResult = MessageBox.Show("Die Punkte gehen dabei verloren.", "Quiz abbrechen", MessageBoxButtons.OKCancel);

            if (dialogResult == DialogResult.OK)
            {
                _instance           = null;
                User.Instance.Score = 0;
                App app = (App)Parent.Parent;
                app.QuizConfig();
            }
        }