예제 #1
0
파일: Form3.cs 프로젝트: BRAHAIM360/paie
        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;
            }
        }
예제 #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();
        }