void MostrarDatos() { ClassColores Datos = new ClassColores(); this.dataGridView2.DataSource = Datos.MostrarMarca(); this.dataGridView2.Refresh(); Datos = new ClassColores(); this.dataGridView1.DataSource = Datos.MostrarMarca(); this.dataGridView1.Refresh(); }
private void MostrarDatos() { BLL.ClassColores datos = new ClassColores(); this.dataGridView1.DataSource = datos.MostrarCategoria(); this.dataGridView1.Refresh(); datos = new ClassColores(); this.dataGridView2.DataSource = datos.MostrarMedida(); this.dataGridView2.Refresh(); datos = new ClassColores(); this.dataGridView3.DataSource = datos.MostrarMarca(); this.dataGridView3.Refresh(); datos = new ClassColores(); this.comboBox1.DataSource = datos.MostrarCategoria(); this.comboBox1.DisplayMember = "Nombre"; this.comboBox1.ValueMember = "Codigo_Categoria"; this.comboBox1.Refresh(); datos = new ClassColores(); this.comboBox2.DataSource = datos.MostrarMedida(); this.comboBox2.DisplayMember = "Medida"; this.comboBox2.ValueMember = "Codigo_Medida"; this.comboBox2.Refresh(); datos = new ClassColores(); this.comboBox3.DataSource = datos.MostrarMarca(); this.comboBox3.DisplayMember = "NombreMarca"; this.comboBox3.ValueMember = "Codigo_Marca"; this.comboBox3.Refresh(); datos = new ClassColores(); this.dataGridView4.DataSource = datos.MostrarTipo(); this.dataGridView4.Refresh(); }