Exemplo n.º 1
0
 // 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();
 }
Exemplo n.º 2
0
 // 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();
 }
Exemplo n.º 3
0
 private void addRoundToListBox(Round round)
 {
     rounds.Add(round);
     DBController.AddRound(round);
     updateBinding();
 }