Example #1
0
        public bool ModificarCarrera(int idCarrera, string bNombre, string bAños, string bNumResolucion, string bHorarios)
        {
            dalc = new DaLCarrera();
            int daños;
            int dhoras;

            if ((bNombre == "") | (bNumResolucion == ""))
            {
                return(false);
            }
            try
            {
                daños = Convert.ToInt32(bAños);
            }
            catch (Exception)
            {
                return(false);
            }
            try
            {
                dhoras = Convert.ToInt32(bHorarios);
            }
            catch (Exception)
            {
                return(false);
            }

            return(dalc.ModificarCarrera(idCarrera, bNombre, daños, bNumResolucion, dhoras));
        }
Example #2
0
        public bool CargarCarrera(string bNombre, string bAños, string bNumResolucion, string bHorarios)
        {
            dalc = new DaLCarrera();

            int dAños;
            int dHorarios;

            try
            {
                dAños = Convert.ToInt32(bAños);
            }
            catch (Exception)
            {
                return(false);
            }
            try
            {
                dHorarios = Convert.ToInt32(bHorarios);
            }
            catch (Exception)
            {
                return(false);
            }


            return(dalc.CargarCarrera(bNombre, dAños, bNumResolucion, dHorarios));
        }
Example #3
0
        public bool EliminarCarrera(int ID)
        {
            DaLCarrera DC = new DaLCarrera();

            if (DC.EliminarCarrera(ID))
            {
                return(true);
            }
            else
            {
                MessageBox.Show(DC.error);
                return(false);
            }
            //return DC.EliminarCarrera(ID);
        }