Exemple #1
0
        private void btnAceptar_Click(object sender, EventArgs e)
        {
            string desc    = txtDescripcion.Text;
            int    hss     = Int32.Parse(txtHSS.Text);
            int    hst     = Int32.Parse(txtHST.Text);
            int    idp     = 0;
            string abuscar = cmbPlan.SelectedText;

            foreach (Plan plan in planes)
            {
                if (plan.Descripcion.Equals(abuscar))
                {
                    idp = plan.IDEspecialidad;
                }
            }
            Materia mat = new Materia(desc, hss, hst, idp);

            label5.Text = "  " + desc + "  " + hss + "  " + hst + "  " + idp + "  ";
            Materias ctrMaterias = ABMmaterias.obtenerControlador();

            ctrMaterias.agregarMaterias(mat);
            //Probando el git 1
        }
Exemple #2
0
        private void btnMaterias_Click(object sender, EventArgs e)
        {
            ABMmaterias abmMat = new ABMmaterias();

            abmMat.Show();
        }