Exemple #1
0
        private void btncrearcliente_Click(object sender, EventArgs e)
        {
            CrearProveedor frm = new CrearProveedor();

            frm.ShowDialog();
            ListProveedor();
        }
Exemple #2
0
        private void btneditar_Click(object sender, EventArgs e)
        {
            CrearProveedor frm = new CrearProveedor();

            frm.txtproveedor.Text = dataGridView1.CurrentRow.Cells["Proveedor"].Value.ToString();
            frm.txtcontacto.Text  = dataGridView1.CurrentRow.Cells["Contacto"].Value.ToString();
            frm.txtcorreo.Text    = dataGridView1.CurrentRow.Cells["Correo"].Value.ToString();
            frm.txttelefono1.Text = dataGridView1.CurrentRow.Cells["Telefono1"].Value.ToString();
            frm.txttelefono2.Text = dataGridView1.CurrentRow.Cells["Telefono2"].Value.ToString();
            frm.ProveedorId       = dataGridView1.CurrentRow.Cells["ProveedorId"].Value.ToString();

            frm.isedit = true;

            frm.ShowDialog();
            ListProveedor();
        }