private void buttonAddPlayer_Click(object sender, EventArgs e) { Data.edited_player = -1; form_add_edit_player form_aep = new form_add_edit_player(); form_aep.Owner = this; form_aep.ShowDialog(); }
private void buttonEditPlayer_Click(object sender, EventArgs e) { int index = dataPlayers.CurrentRow.Index; Data.edited_player = Convert.ToInt32(dataPlayers.Rows[index].Cells[0].Value); form_add_edit_player form_aep = new form_add_edit_player(); form_aep.Owner = this; form_aep.ShowDialog(); }
private void buttonEditPlayer_Click(object sender, EventArgs e) { int index = dataPlayers.CurrentRow.Index; Data.edited_player = Convert.ToInt32(dataPlayers.Rows[index].Cells[0].Value); form_add_edit_player form_aep = new form_add_edit_player(); form_aep.Owner = this; form_aep.ShowDialog(); }
private void buttonAddPlayer_Click(object sender, EventArgs e) { Data.edited_player = -1; form_add_edit_player form_aep = new form_add_edit_player(); form_aep.Owner = this; form_aep.ShowDialog(); }