private void btnReset_Click(object sender, EventArgs e) { DialogResult dr = MessageBox.Show("Are you sure you want to reset?", "Reset", MessageBoxButtons.YesNo); if (dr == DialogResult.Yes) { pList = new PlayerList(); ResetAllBoxes(); lblCount.Text = "Total Players: " + pList.totalPlayers; } }
public Form1() { InitializeComponent(); pList = new PlayerList(); }