示例#1
0
文件: Admin.cs 项目: rlm33/svn
        //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);
            }
        }
示例#2
0
文件: Admin.cs 项目: rlm33/svn
        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);
            }
        }