public frmInsertarPreferencias(frmInsertarTutor formAnterior, 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.formPlantilla = formPlantilla; this.formAnterior = formAnterior; daoTutor = new TutorWS.TutorWSClient(); chblDias.CheckOnClick = true; chblDispositivos.CheckOnClick = true; chblInternet.CheckOnClick = true; chblTurno.CheckOnClick = true; chblRedes.CheckOnClick = true; if (tutor.genero == 'M') { chbGestante.Enabled = false; } tutorAux = tutor; }
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 frmModificarTutor(frmOperacionesPersona formOperacionPersona, 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; this.formPlantilla = formPlantilla; this.formOperacionPersona = formOperacionPersona; txtDistrito.ReadOnly = true; daoTutor = new TutorWS.TutorWSClient(); inicializarComponentes(); completarDatosTutores(); }
public frmOperacionesPersona(frmGestionarModuloAdmin formGestionarModulos, frmPlantillaGestion formPlantilla) { this.DoubleBuffered = true; InitializeComponent(); Design.Ini(this); if (Design.tema == 'd') { ThemeManager.Theme = MaterialSkinManager.Themes.DARK; } else { ThemeManager.Theme = MaterialSkinManager.Themes.LIGHT; } daoTutor = new TutorWS.TutorWSClient(); daoPsicologo = new PsicologoWS.PsicologoWSClient(); this.formPlantilla = formPlantilla; this.formGestionarModulos = formGestionarModulos; inicializarTablas(); }
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; } }