Ejemplo n.º 1
0
        private void metroButton1_Click(object sender, EventArgs e)
        {
            Idioma idioma = new Idioma();

            idioma = (Idioma)cbIdioma.SelectedItem;
            Obsever.update(idioma);
        }
Ejemplo n.º 2
0
        private void frmExamenAlumno_Load(object sender, EventArgs e)
        {
            Obsever.AgregarForm(this);

            ExamenComponent examenComponent = new ExamenComponent();
            Examen          examen          = new Examen(persona, null);


            DateTime fi = new DateTime(curso.salaHorario.año, 1, 31);
            DateTime ff = new DateTime(curso.salaHorario.año, 12, 1);

            int n = 0;

            mgExamenes.Rows.Clear();
            foreach (var item in examenComponent.ReadByAlumnoYAño(examen, fi, ff))
            {
                n = mgExamenes.Rows.Add();
                mgExamenes.Rows[n].Cells[0].Value = item.Id;
                string fecha = item.fecha.ToString("dd-MM-yyyy");
                mgExamenes.Rows[n].Cells[1].Value = fecha;
                mgExamenes.Rows[n].Cells[2].Value = item.nota;

                mgExamenes.Rows[n].Cells[3].Value = item.materia.materia;

                n++;
            }
        }
Ejemplo n.º 3
0
        private void frmAlumnoIndex_Load(object sender, EventArgs e)
        {
            lblNombre.Text = SessionManager.instance.GetUSuario().Nombre;
            //CambiarIdioma();
            frmAlarmas alarmas = new frmAlarmas();

            alarmas.ShowDialog();
            listaIdiomas();
            Obsever.AgregarForm(this);
        }
Ejemplo n.º 4
0
        private void frmTraduccion_Load(object sender, EventArgs e)
        {
            Obsever.AgregarForm(this);
            IdiomaComponent        idiomaComponent = new IdiomaComponent();
            List <Entities.Idioma> idiomas         = new List <Entities.Idioma>();

            idiomas                = idiomaComponent.Read();
            cbIdioma.DataSource    = idiomas;
            cbIdioma.DisplayMember = "idioma";
            cbIdioma.ValueMember   = "Id";
        }
Ejemplo n.º 5
0
        private void frmBitacora_Load(object sender, EventArgs e)
        {
            string date         = "01.05.2015 12:12:34";
            var    dutchCulture = CultureInfo.CreateSpecificCulture("nl-NL");
            var    date1        = DateTime.ParseExact(date, "dd.MM.yyyy HH:mm:ss", dutchCulture);

            dtDesde.MaxDate = DateTime.Now;
            dtDesde.MinDate = DateTime.Now.AddYears(-2);
            dtHasta.MaxDate = DateTime.Now;

            Obsever.AgregarForm(this);
            llenarGrilla();
        }
Ejemplo n.º 6
0
        private void frmMaestro_Load(object sender, EventArgs e)
        {
            UsuariosComponent usuariosComponent = new UsuariosComponent();

            usuarios = usuariosComponent.ReadByEmail(SessionManager.instance.GetUSuario().Email);
            MaestroComponent maestroComponent = new MaestroComponent();

            maestro = maestroComponent.ReadByUsuario(usuarios.Id);
            Obsever.AgregarForm(this);
            List <Idioma>   idiomas         = new List <Idioma>();
            IdiomaComponent idiomaComponent = new IdiomaComponent();

            idiomas                = idiomaComponent.Read();
            cbIdioma.DataSource    = idiomas;
            cbIdioma.DisplayMember = "idioma";
            cbIdioma.ValueMember   = "Id";
        }
Ejemplo n.º 7
0
        private void frmPermiso_Load(object sender, EventArgs e)
        {
            Obsever.AgregarForm(this);

            llenarGrillaPermiso();
            llenarGrillaRoles();

            UsuariosComponent usuariosComponent = new UsuariosComponent();
            int n = 0;
            int m = 0;
            int o = 0;

            foreach (var item in usuariosComponent.Read())
            {
                o = mgPermisosQueTieneElUsuario.Rows.Add();
                mgPermisosQueTieneElUsuario.Rows[o].Cells[0].Value = item.Id;
                mgPermisosQueTieneElUsuario.Rows[o].Cells[1].Value = item.UserName;
                mgPermisosQueTieneElUsuario.Rows[o].Cells[2].Value = item.Nombre;
                mgPermisosQueTieneElUsuario.Rows[o].Cells[3].Value = item.Apellido;
                o++;



                n = mgUsuario.Rows.Add();
                mgUsuario.Rows[n].Cells[0].Value = item.Id;
                mgUsuario.Rows[n].Cells[1].Value = item.UserName;
                mgUsuario.Rows[n].Cells[2].Value = item.Nombre;
                mgUsuario.Rows[n].Cells[3].Value = item.Apellido;

                n++;
                m = mgQuitarPermisoUsuario.Rows.Add();
                mgQuitarPermisoUsuario.Rows[m].Cells[0].Value = item.Id;
                mgQuitarPermisoUsuario.Rows[m].Cells[1].Value = item.UserName;
                mgQuitarPermisoUsuario.Rows[m].Cells[2].Value = item.Nombre;
                mgQuitarPermisoUsuario.Rows[m].Cells[3].Value = item.Apellido;

                m++;
            }
        }
Ejemplo n.º 8
0
 private void frmIdiomaIndex_Load(object sender, EventArgs e)
 {
     listaIdiomas();
     Obsever.AgregarForm(this);
 }
Ejemplo n.º 9
0
 private void frmPalabra_Load(object sender, EventArgs e)
 {
     Obsever.AgregarForm(this);
     llenarGrilla();
 }
Ejemplo n.º 10
0
        private void frmUsuario_Load(object sender, EventArgs e)
        {
            Obsever.AgregarForm(this);

            llenarGrillas();
        }
Ejemplo n.º 11
0
 private void frmIdioma_Load(object sender, EventArgs e)
 {
     //RecorridoForm.CambiarIdioma(this);
     Obsever.AgregarForm(this);
     llenarGrilla();
 }
Ejemplo n.º 12
0
        void frmAlumnosIndex_FormClosing(object sender, FormClosingEventArgs e)

        {
            Obsever.QuitarForm(this);
        }
Ejemplo n.º 13
0
 private void frmBoletinMaestro_Load(object sender, EventArgs e)
 {
     Obsever.AgregarForm(this);
     llenarGrillaCursos();
 }
Ejemplo n.º 14
0
 private void IUservicios_Load(object sender, EventArgs e)
 {
     Obsever.AgregarForm(this);
 }
Ejemplo n.º 15
0
        void InfraIndex_FormClosing(object sender, FormClosingEventArgs e)

        {
            Obsever.QuitarForm(this);
        }