Beispiel #1
0
        private void BtnClearHistory_Click(object sender, EventArgs e)
        {
            FormConfirm formConfirm = new FormConfirm("Clear player history?");

            if (formConfirm.ShowDialog() == DialogResult.OK)
            {
                PlayerController.ClearPlayerHistory(this);
                GameController.NewGame(this);
            }
        }
Beispiel #2
0
        private void BtnDeletePlayer_Click(object sender, EventArgs e)
        {
            FormConfirm formConfirm = new FormConfirm("Clear player history and delete player?");

            if (formConfirm.ShowDialog() == DialogResult.OK)
            {
                PlayerController.ClearPlayerHistory(this);
                PlayerController.DeletePlayer(this);
                ViewController.PlayerDeactivate(this);
            }
        }