Esempio n. 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Add_user a = new Add_user();

            a.id = 0;
            a.ShowDialog();
        }
Esempio n. 2
0
        private void button2_Click(object sender, EventArgs e)
        {
            string[] tab = new string[4];
            int      i   = 0;

            foreach (DataGridViewCell cell in dataGridView1.SelectedCells)

            {
                tab[i] = cell.Value.ToString();
                i++;
            }
            Add_user a = new Add_user();

            a.id = Int32.Parse(tab[3]);
            Loginn us = new Loginn()
            {
                utilisateur = tab[0], mot_de_pass = tab[1], role = tab[2]
            };

            a.User = us;
            a.ShowDialog();
        }