private void buttonAjoutNAToEvent_Click(object sender, EventArgs e) { ConfirmAjoutEvent confirmation = new ConfirmAjoutEvent(idEvent, 0, textBoxNomNewNA.Text, textBoxPrenomNewNA.Text, textBoxTelNewNA.Text); confirmation.FormClosed += ConfirmAjout_FormClosed; confirmation.ShowDialog(); }
private void dataGridViewListAdhToEvent_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { var Adh = dataGridViewListAdhToEvent.Rows[e.RowIndex].Cells[0].Value.ToString(); ConfirmAjoutEvent confirmation = new ConfirmAjoutEvent(idEvent, int.Parse(Adh), "", "", ""); confirmation.FormClosed += ConfirmAjout_FormClosed; confirmation.ShowDialog(); }