Esempio n. 1
0
        private void Btnmodifier_Click(object sender, EventArgs e)
        {
            PL.ajouter_modifier_client frmclient = new ajouter_modifier_client(this);
            if (verifSelect() == null)
            {
                for (int i = 0; i < dgvclient.RowCount; i++)
                {
                    if ((bool)dgvclient.Rows[i].Cells[0].Value == true)
                    {
                        frmclient.idSelect         = (int)dgvclient.Rows[i].Cells[1].Value;
                        frmclient.nomClient.Text   = dgvclient.Rows[i].Cells[2].Value.ToString();
                        frmclient.PrenomCli.Text   = dgvclient.Rows[i].Cells[3].Value.ToString();
                        frmclient.AdresseCLI.Text  = dgvclient.Rows[i].Cells[4].Value.ToString();
                        frmclient.EmailCli.Text    = dgvclient.Rows[i].Cells[5].Value.ToString();
                        frmclient.telephoncli.Text = dgvclient.Rows[i].Cells[6].Value.ToString();
                        frmclient.VilleCli.Text    = dgvclient.Rows[i].Cells[7].Value.ToString();
                        frmclient.PaysCli.Text     = dgvclient.Rows[i].Cells[8].Value.ToString();
                    }
                }

                frmclient.label1.Text = "Modifier Client";
                frmclient.btnActualiserCli.Visible = false;
                frmclient.ShowDialog();
            }
            else
            {
                MessageBox.Show(verifSelect(), "Modifications", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Esempio n. 2
0
 private void Btnajouter_Click(object sender, EventArgs e)
 {
     PL.ajouter_modifier_client frmclient = new ajouter_modifier_client(this);
     frmclient.ShowDialog();
 }