示例#1
0
 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;
     }
 }
示例#2
0
 public Form1()
 {
     InitializeComponent();
     pList = new PlayerList();
 }