예제 #1
0
 private void btnDelete_Click(object sender, EventArgs e)
 {
     if (dataGridView1.SelectedRows.Count > 0)
     {
         for (int i = 0; i < dataGridView1.SelectedRows.Count; i++)
         {
             etudiantBLO.DeleteEtudiant(dataGridView1.SelectedRows[i].DataBoundItem as Etudiant);
         }
         loadData();
     }
 }
예제 #2
0
파일: Form1.cs 프로젝트: chimiRonald/CCC01
 private void bunifuThinButton24_Click(object sender, EventArgs e)
 {
     if (dataGridView1.SelectedRows.Count > 0)
     {
         if (MessageBox.Show("Confirmation ? ",
                             "Confirm", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
         {
             for (int i = 0; i < dataGridView1.SelectedRows.Count; i++)
             {
                 etudiantBLO.DeleteEtudiant(dataGridView1.SelectedRows[i].DataBoundItem as Etudiant);
             }
             loadData();
         }
     }
 }
예제 #3
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (dataGridView1.SelectedRows.Count > 0)
     {
         if (
             MessageBox.Show
             (
                 "Voulez-vous vraiment supprimer cet etudiant ?",
                 "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Question
             ) == DialogResult.Yes
             )
         {
             for (int i = 0; i < dataGridView1.SelectedRows.Count; i++)
             {
                 EtudiantBLO.DeleteEtudiant(dataGridView1.SelectedRows[i].DataBoundItem as Etudiant);
             }
             loadData();
         }
     }
 }
예제 #4
0
 private void btnSupprimer_Click(object sender, EventArgs e)
 {
     if (dataGridView1.SelectedRows.Count > 0)
     {
         if (
             MessageBox.Show
             (
                 "Do you really want to delete this product(s)?",
                 "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Question
             ) == DialogResult.Yes
             )
         {
             for (int i = 0; i < dataGridView1.SelectedRows.Count; i++)
             {
                 etudiantBLO.DeleteEtudiant(dataGridView1.SelectedRows[i].DataBoundItem as Etudiant);
             }
             loadData();
         }
     }
 }