private void AddBtn_Click(object sender, EventArgs e) { addingProcedure = true; PlayerForm pf = new PlayerForm(this); pf.ShowDialog(); }
private void ModifyBtn_Click(object sender, EventArgs e) { addingProcedure = false; if (players[0] == null) { MessageBox.Show( "Please add a player first.", "Modify Error", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1); return; } PlayerForm pf = new PlayerForm(this); pf.ShowDialog(); }