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); } }
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); } }