//PEDIDOS DISTRIBUIDORES //CURSOS private void initializeDataGridCursos() { ENCourse course = new ENCourse(); List <ENCourse> list = course.ReadAll(); dataGridViewMostrarCursos.Rows.Clear(); foreach (ENCourse c in list) { dataGridViewMostrarCursos.Rows.Add(c.Courses); } }
private void initializeComboBox() { comboBoxNuevoLibroCurso.Items.Clear(); ENCourse course = new ENCourse(); List <ENCourse> lcourse = course.ReadAll(); foreach (ENCourse c in lcourse) { comboBoxNuevoLibroCurso.Items.Add(c.Courses); } comboBoxNuevoLibroEditorial.Items.Clear(); ENPublisher publisher = new ENPublisher(); List <ENPublisher> lpublisher = publisher.readAll(); foreach (ENPublisher p in lpublisher) { comboBoxNuevoLibroEditorial.Items.Add(p.Cif); } }