// TODO: make this function redirect to StartForm instead of exiting out of the entire application // deletes the player and exits entirely from the application private void deletePlayerToolStripMenuItem_Click(object sender, EventArgs e) { DBController.DeletePlayer(currentPlayer.PlayerId); Application.Exit(); }
// clears player history in the database as well as in the MainForm private void clearPlayerHistoryToolStripMenuItem_Click(object sender, EventArgs e) { DBController.ClearRound(currentPlayer.PlayerId); rounds.Clear(); updateBinding(); }
private void addRoundToListBox(Round round) { rounds.Add(round); DBController.AddRound(round); updateBinding(); }