Example #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            string[] tab = new string[13];
            int      i   = 0;

            foreach (DataGridViewCell cell in dataGridView1.SelectedCells)

            {
                tab[i] = cell.Value.ToString();


                i++;
            }



            const string message = "etes vous sur de vouloir supprimer ce salarié";
            const string caption = "Validation";

            var result = MessageBox.Show(message, caption,
                                         MessageBoxButtons.OKCancel,
                                         MessageBoxIcon.Question);

            // If the no button was pressed ...
            if (result == DialogResult.OK)
            {
                listeSAl[0].SuprimerSalarié(Int32.Parse(tab[12]));
                code_wilaya parent = (code_wilaya)this.Owner;
            }
        }
Example #2
0
        private void toolStripButton4_Click(object sender, EventArgs e)
        {
            //Form3 f3 = new Form3();

            code_wilaya f3 = new code_wilaya();

            f3.id_entt = id_ent;
            f3.ShowDialog();
        }