private void btConfirmerPayer_Click(object sender, EventArgs e) { try { if (rdConjointNonPayer.Checked == true) { pc.confirmerPaiymentConjoint(int.Parse(dataNonPaiment.CurrentRow.Cells[0].Value.ToString()), int.Parse(dataActiviteActuel.CurrentRow.Cells[0].Value.ToString()), 0, int.Parse(dataActiviteActuel.CurrentRow.Cells[6].Value.ToString())); MessageBox.Show("Paiyment confirmer", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { if (rdEnfantNonPayer.Checked == true) { pc.confirmerPaiymentEnfant(int.Parse(dataNonPaiment.CurrentRow.Cells[0].Value.ToString()), int.Parse(dataActiviteActuel.CurrentRow.Cells[0].Value.ToString()), 0, int.Parse(dataActiviteActuel.CurrentRow.Cells[6].Value.ToString())); MessageBox.Show("Paiyment confirmer", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { if (rdAdherentNonPayer.Checked == true) { pc.confirmerPaiymentAdherent(int.Parse(dataNonPaiment.CurrentRow.Cells[0].Value.ToString()), int.Parse(dataActiviteActuel.CurrentRow.Cells[0].Value.ToString()), 0, int.Parse(dataActiviteActuel.CurrentRow.Cells[6].Value.ToString())); MessageBox.Show("Paiyment confirmer", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { if ((rdAdherentNonPayer.Checked == false) && (rdConjointNonPayer.Checked == false) && (rdEnfantNonPayer.Checked == false)) { MessageBox.Show("Vous devez séléctionner le type de participant", "Message", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } } } } catch (Exception ex) { System.Console.WriteLine("error :" + ex.Message); } }