private void metroButton1_Click(object sender, EventArgs e) { Idioma idioma = new Idioma(); idioma = (Idioma)cbIdioma.SelectedItem; Obsever.update(idioma); }
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++; } }
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); }
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"; }
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(); }
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"; }
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++; } }
private void frmIdiomaIndex_Load(object sender, EventArgs e) { listaIdiomas(); Obsever.AgregarForm(this); }
private void frmPalabra_Load(object sender, EventArgs e) { Obsever.AgregarForm(this); llenarGrilla(); }
private void frmUsuario_Load(object sender, EventArgs e) { Obsever.AgregarForm(this); llenarGrillas(); }
private void frmIdioma_Load(object sender, EventArgs e) { //RecorridoForm.CambiarIdioma(this); Obsever.AgregarForm(this); llenarGrilla(); }
void frmAlumnosIndex_FormClosing(object sender, FormClosingEventArgs e) { Obsever.QuitarForm(this); }
private void frmBoletinMaestro_Load(object sender, EventArgs e) { Obsever.AgregarForm(this); llenarGrillaCursos(); }
private void IUservicios_Load(object sender, EventArgs e) { Obsever.AgregarForm(this); }
void InfraIndex_FormClosing(object sender, FormClosingEventArgs e) { Obsever.QuitarForm(this); }