Exemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            société s = new société();

            s.ajouter_modifier = 0;
            s.ShowDialog();
        }
Exemplo n.º 2
0
        private void button3_Click(object sender, EventArgs e)
        {
            société s = new société();

            s.id_userr = id;
            s.ShowDialog();
        }
Exemplo n.º 3
0
        private void button2_Click(object sender, EventArgs e)
        {
            string[] tab = new string[12];
            int      i   = 0;

            foreach (DataGridViewCell cell in dataGridView1.SelectedCells)

            {
                tab[i] = cell.Value.ToString();
                i++;
            }
            société s = new société();

            if (!(tab[10] == null))
            {
                s.ajouter_modifier = Int32.Parse(tab[10]);
            }


            s.modif(tab[0], tab[1], tab[2], tab[3], tab[4], tab[5], tab[6], tab[7], tab[8], tab[9], tab[10]);
            s.ShowDialog();
        }