Example #1
0
 private void button4_Click(object sender, EventArgs e)
 {
     GUI.Bodega.ProveedoresControl proveedoresgui = new ProveedoresControl();
     proveedoresgui.ShowDialog();
     DAO.ProveedoresDAO proveedoresdao = new GrupoSM_Recepcion.DAO.ProveedoresDAO();
     dataGridView1.DataSource = proveedoresdao.proveedorestabla();
 }
Example #2
0
 private void button3_Click(object sender, EventArgs e)
 {
     GUI.Bodega.ProveedoresControl proveedoresgui = new ProveedoresControl();
     proveedoresgui.textBox1.Text = Convert.ToString(dataGridView1.CurrentRow.Cells["nombre"].Value);
     proveedoresgui.label2.Text   = Convert.ToString(dataGridView1.CurrentRow.Cells["idproveedor"].Value);
     proveedoresgui.ShowDialog();
     DAO.ProveedoresDAO proveedoresdao = new GrupoSM_Recepcion.DAO.ProveedoresDAO();
     dataGridView1.DataSource = proveedoresdao.proveedorestabla();
 }