示例#1
0
        private void addANewClientToolStripMenuItem_Click(object sender, EventArgs e)
        {
            AddAnewClient fr1 = new AddAnewClient();

            //fr1.MdiParent = this;

            fr1.Show();
        }
        private void dataGridView2_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            string index = dataGridView2.Rows[e.RowIndex].Cells[2].Value.ToString();

            if (dataGridView2.Columns[e.ColumnIndex].HeaderText == "Modfier")
            {
                AddAnewClient addAnewClient = new AddAnewClient();

                EditorAttribute = true;
                iduser          = index;
                addAnewClient.Show();
            }


            if (dataGridView2.Columns[e.ColumnIndex].HeaderText == "Supprimer")
            {
                Delete_Click(index);
            }
        }