private void Actualizarcontrol() { List <ADDRESS> lista1 = ConsultaADDRESS.GetListaDAd(usuario.idUser); List <APPORDER> lista2 = ConsultaAPPORDER.getLista(); List <Inventario> lista3 = ConsultaInventario.getLista(); comboBoxDireccion.DataSource = null; comboBoxDireccion.ValueMember = "idaddress"; comboBoxDireccion.DisplayMember = "address"; comboBoxDireccion.DataSource = lista1; comboOrdenar.DataSource = null; comboOrdenar.ValueMember = "idproduct"; comboOrdenar.DisplayMember = "name"; comboOrdenar.DataSource = lista3; cmbdireccionOrden.DataSource = null; cmbdireccionOrden.ValueMember = "idaddress"; cmbdireccionOrden.DisplayMember = "Aaddress"; cmbdireccionOrden.DataSource = lista1; cmbeliminarorden.DataSource = null; cmbeliminarorden.ValueMember = "idproduct"; cmbeliminarorden.DisplayMember = "idorder"; cmbeliminarorden.DataSource = lista2; }
private void Actualizar() { List <Usuario> lista1 = ConsultaUsuario.getLista(); List <BUSINESS> lista2 = ConsultaBUSINESS.getLista(); List <Inventario> lista3 = ConsultaInventario.getLista(); List <APPORDER> lista4 = ConsultaAPPORDER.getLista(); cmbeliminarUser.DataSource = null; cmbeliminarUser.ValueMember = "password"; cmbeliminarUser.DisplayMember = "username"; cmbeliminarUser.DataSource = lista1; cmnegociopro.DataSource = null; cmnegociopro.ValueMember = "idbusiness"; cmnegociopro.DisplayMember = "name"; cmnegociopro.DataSource = lista2; cmbEliminarpro.DataSource = null; cmbEliminarpro.ValueMember = "idproduct"; cmbEliminarpro.DisplayMember = "name"; cmbEliminarpro.DataSource = lista3; comboBoxEliminarnegocio.DataSource = null; comboBoxEliminarnegocio.ValueMember = "idbusiness"; comboBoxEliminarnegocio.DisplayMember = "name"; comboBoxEliminarnegocio.DataSource = lista2; }