private void PoblarControles() { comboBox1.DataSource = null; comboBox1.ValueMember = "password"; comboBox1.DisplayMember = "username"; comboBox1.DataSource = AppUserDAO.getLista(); }
private void frmCambiarContra_Load(object sender, EventArgs e) { comboBox1.DataSource = null; comboBox1.ValueMember = "password"; comboBox1.DisplayMember = "iduser"; comboBox1.DataSource = AppUserDAO.getLista(); }
private void actualizarControlesAdmin() { // Realizar consulta a la base de datos List <AppUser> listaU = AppUserDAO.getLista(); cmbUserId.DataSource = null; cmbUserId.ValueMember = "id_User"; cmbUserId.DisplayMember = "id_User"; cmbUserId.DataSource = listaU; List <Business> listaB = BusinessDAO.getLista(); cmbBusinessiD.DataSource = null; cmbBusinessiD.DisplayMember = "idBusiness"; cmbBusinessiD.ValueMember = "idBusiness"; cmbBusinessiD.DataSource = listaB; cmbBiD.DataSource = null; cmbBiD.DisplayMember = "idBusiness"; cmbBiD.ValueMember = "idBusiness"; cmbBiD.DataSource = listaB; List <Product> listaP = ProductDAO.getLista(); cmbProductId.DataSource = null; cmbProductId.DisplayMember = "idProduct"; cmbProductId.ValueMember = "idProduct"; cmbProductId.DataSource = listaP; }
private void poblarControles() { // Actualizar ComboBox cmbUsuario.DataSource = null; cmbUsuario.ValueMember = "password"; cmbUsuario.DisplayMember = "username"; cmbUsuario.DataSource = AppUserDAO.getLista(); }
private void frmModUsuario_Load(object sender, EventArgs e) { // Actualizar ComboBox cmbUser.DataSource = null; cmbUser.ValueMember = "password"; cmbUser.DisplayMember = "id_User"; cmbUser.DataSource = AppUserDAO.getLista(); }
private void actualizarTablasAdmin() { dGUser.DataSource = null; dGUser.DataSource = AppUserDAO.getLista(); dGBusiness.DataSource = null; dGBusiness.DataSource = BusinessDAO.getLista(); dGProduct.DataSource = null; dGProduct.DataSource = ProductDAO.getLista(); dGTotalOrders.DataSource = null; dGTotalOrders.DataSource = AppOrderDAO.getLista(); }
private void actualizarControles() { List <AppUser> lista = AppUserDAO.getLista(); dataGridView1.DataSource = null; dataGridView1.DataSource = lista; comboBox1.DataSource = null; comboBox1.DisplayMember = "iduser"; comboBox1.DataSource = lista; List <Business> list = BusinessDAO.getLista(); comboBox2.DataSource = null; comboBox2.DisplayMember = "idbusiness"; comboBox2.DataSource = list; List <Product> lis = ProductDAO.getLista(); comboBox3.DataSource = null; comboBox3.DisplayMember = "idbusiness"; comboBox3.DataSource = list; comboBox4.DataSource = null; comboBox4.DisplayMember = "idbusiness"; comboBox4.DataSource = list; List <Adress> listAdress = AdressDAO.getLista(); comboBox6.DataSource = null; comboBox6.DisplayMember = "idbusiness"; comboBox6.DataSource = list; List <AppOrder> listOrders = AppOrderDAO.getLista(); comboBox8.DataSource = null; comboBox8.DisplayMember = "idorder"; comboBox8.DataSource = listOrders; dataGridView2.DataSource = null; dataGridView2.DataSource = listOrders; comboBox7.DataSource = null; comboBox7.DisplayMember = "idproduct"; comboBox7.DataSource = lis; comboBox5.DataSource = null; comboBox5.DisplayMember = "idadress"; comboBox5.DataSource = listAdress; List <Adress> listaAdress = AdressDAO.getListaAdress(appuser.iduser); dataGridView3.DataSource = null; dataGridView3.DataSource = listaAdress; List <AppOrder> listaAppOrders = AppOrderDAO.getListaAppOrder(appuser.iduser); dataGridView5.DataSource = null; dataGridView5.DataSource = listaAppOrders; }