public frmOperacionesCursos(frmGestionarModuloAdmin formGestionarModuloAdmin, frmPlantillaGestion formPlantillaGest) { this.formGestionarModuloAdmin = formGestionarModuloAdmin; this.formPlantillaGest = formPlantillaGest; this.daoCurso = new CursoWS.CursoWSClient(); this.daoGrupo = new GrupoWS.GrupoWSClient(); this.daoSemana = new SemanaWS.SemanaWSClient(); this.daoPsicologo = new PsicologoWS.PsicologoWSClient(); this.daoUsuario = new UsuarioWS.UsuarioWSClient(); this.DoubleBuffered = true; InitializeComponent(); Design.Ini(this); if (Design.tema == 'd') { ThemeManager.Theme = MaterialSkinManager.Themes.DARK; } else { ThemeManager.Theme = MaterialSkinManager.Themes.LIGHT; } dgvCursos.AutoGenerateColumns = false; dgvCursos.SelectionMode = DataGridViewSelectionMode.FullRowSelect; btnReporte.Visible = false; FetchCursos(); UpdateCursosTable(); }
public frmInsertarPsicologo(frmOperacionesPersona formOperacionPersona, frmPlantillaGestion formPlantilla) { this.DoubleBuffered = true; InitializeComponent(); Design.Ini(this); if (Design.tema == 'd') { ThemeManager.Theme = MaterialSkinManager.Themes.DARK; } else { ThemeManager.Theme = MaterialSkinManager.Themes.LIGHT; } this.formPlantilla = formPlantilla; this.formOperacionPersona = formOperacionPersona; daoPsicologo = new PsicologoWS.PsicologoWSClient(); daoUsuario = new UsuarioWS.UsuarioWSClient(); daoTutor = new TutorWS.TutorWSClient(); daoPsicologo = new PsicologoWS.PsicologoWSClient(); txtDistrito.ReadOnly = true; inicializarComponentes(); }
public frmModificarPreferencias(frmModificarTutor formModificarTutor, frmPlantillaGestion formPlantilla, TutorWS.tutor tutor) { this.DoubleBuffered = true; InitializeComponent(); Design.Ini(this); if (Design.tema == 'd') { ThemeManager.Theme = MaterialSkinManager.Themes.DARK; } else { ThemeManager.Theme = MaterialSkinManager.Themes.LIGHT; } this.tutor = tutor; daoTutor = new TutorWS.TutorWSClient(); daoUsuario = new UsuarioWS.UsuarioWSClient(); this.formPlantilla = formPlantilla; this.formAnterior = formModificarTutor; chblDias.CheckOnClick = true; chblDispositivos.CheckOnClick = true; chblInternet.CheckOnClick = true; chblTurno.CheckOnClick = true; chblRedes.CheckOnClick = true; // Leer tutor.dispositivos for (int x = 0; x < (int)Math.Floor(Math.Log10(tutor.dispositivos) + 1); x++) { if (tutor.dispositivos.ToString()[(int)Math.Floor(Math.Log10(tutor.dispositivos)) - x] == '1') { chblDispositivos.SetItemChecked(x, true); // Si es 2, es false } } // Leer tutor.tiposConexion for (int x = 0; x < (int)Math.Floor(Math.Log10(tutor.tiposConexion) + 1); x++) { if (tutor.tiposConexion.ToString()[(int)Math.Floor(Math.Log10(tutor.tiposConexion)) - x] == '1') { chblInternet.SetItemChecked(x, true); // Si es 2, es false } } // Leer tutor.turno for (int x = 0; x < (int)Math.Floor(Math.Log10(tutor.turno) + 1); x++) { if (tutor.turno.ToString()[(int)Math.Floor(Math.Log10(tutor.turno)) - x] == '1') { chblTurno.SetItemChecked(x, true); // Si es 2, es false } } // Leer tutor.dia for (int x = 0; x < (int)Math.Floor(Math.Log10(tutor.dia) + 1); x++) { if (tutor.dia.ToString()[(int)Math.Floor(Math.Log10(tutor.dia)) - x] == '1') { chblDias.SetItemChecked(x, true); // Si es 2, es false } } // Leer tutor.redesSociales for (int x = 0; x < (int)Math.Floor(Math.Log10(tutor.redesSociales) + 1); x++) { if (tutor.redesSociales.ToString()[(int)Math.Floor(Math.Log10(tutor.redesSociales)) - x] == '1') { chblRedes.SetItemChecked(x, true); // Si es 2, es false } } // Leer tutor.bajoRecursos if (tutor.bajoRecursos == 1) { chbRecursos.Checked = true; } else { chbRecursos.Checked = false; } // Leer tutor.gestante if (tutor.genero == 'M') { chbGestante.Enabled = false; chbGestante.Visible = false; } else if (tutor.gestante == 1) { chbGestante.Checked = true; } }