Beispiel #1
0
        private void metroButton_delete_candidat_Click(object sender, EventArgs e)
        {
            DialogResult x = MessageBox.Show("Voulez vous vraiment supprimer ce candidat", "Supprission", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning);

            if (x == DialogResult.OK)
            {
                Boolean is_delete_ok = Class_Database_app.delete_a_candidat((int)chercher_for_delete_ids[position_to_delete]);
                if (is_delete_ok)
                {
                    MessageBox.Show("Le Candidat bien supprimer", "Bien Supprimer", MessageBoxButtons.OK, MessageBoxIcon.Information);
                }
                else
                {
                    MessageBox.Show("le procedure delete annuler");
                }
            }
            else
            {
                MessageBox.Show("La supprision a éte annuler", "Annulation", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }