Ejemplo n.º 1
0
        private void btnAnnuler_Click(object sender, EventArgs e)
        {
            AjoutLC f1 = new AjoutLC(reef, idClient);

            this.Dispose();
            f1.ShowDialog();
        }
Ejemplo n.º 2
0
        private void btnValider_Click(object sender, EventArgs e)
        {
            if (gridProduit.SelectedRows.Count == 1)
            {
                AjoutLC f1 = new AjoutLC(reef, idClient);

                f1.txtProduit.Text     = gridProduit.SelectedRows[0].Cells[0].Value.ToString();
                f1.txtType.Text        = gridProduit.SelectedRows[0].Cells[1].Value.ToString();
                f1.txtDesignation.Text = gridProduit.SelectedRows[0].Cells[2].Value.ToString();


                this.Dispose();
                f1.ShowDialog();
            }
            else
            {
                MessageBox.Show("Selectionner le produit souhaiter" + "\n" + "Selectionner la ligne entiere.", "Erreur de selection", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
        }