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 frmVerGruposCurso(frmInsertarCurso formInsertarCurso, frmPlantillaGestion formPlantillaGest, BindingList <Grupo_Curso> grupos, string nombreCurso) { this.DoubleBuffered = true; this.formInsertarCurso = formInsertarCurso; this.formPlantillaGest = formPlantillaGest; InitializeComponent(); Design.Ini(this); if (Design.tema == 'd') { ThemeManager.Theme = MaterialSkinManager.Themes.DARK; } else { ThemeManager.Theme = MaterialSkinManager.Themes.LIGHT; } gruposCurso = grupos; // contGrupos = 0; // dgvGrupos.AutoGenerateColumns = false; dgvGrupos.SelectionMode = DataGridViewSelectionMode.FullRowSelect; // lblNombreCurso.Text = "Curso: " + nombreCurso; // inicializarPantalla(); }
public frmCrearGrupo(frmVerGruposCurso formVerGruposCurso, frmPlantillaGestion formPlantillaGest, Grupo_Curso grupo) { this.DoubleBuffered = true; this.formVerGruposCurso = formVerGruposCurso; this.formPlantillaGest = formPlantillaGest; this.grupo = grupo; InitializeComponent(); Design.Ini(this); if (Design.tema == 'd') { ThemeManager.Theme = MaterialSkinManager.Themes.DARK; } else { ThemeManager.Theme = MaterialSkinManager.Themes.LIGHT; } dgvPsicologos.AutoGenerateColumns = false; dgvPsicologos.SelectionMode = DataGridViewSelectionMode.FullRowSelect; txtMaxTutores.Text = "0"; inicializarPantalla(); }
public frmInsertarCurso(frmOperacionesCursos formOperacionesCursos, frmPlantillaGestion formPlantillaGest) { this.DoubleBuffered = true; this.formPlantillaGest = formPlantillaGest; this.formOperacionesCursos = formOperacionesCursos; daoCurso = new CursoWS.CursoWSClient(); daoGrupo = new GrupoWS.GrupoWSClient(); daoSemana = new SemanaWS.SemanaWSClient(); daoPsicologo = new PsicologoWS.PsicologoWSClient(); InitializeComponent(); Design.Ini(this); if (Design.tema == 'd') { ThemeManager.Theme = MaterialSkinManager.Themes.DARK; } else { ThemeManager.Theme = MaterialSkinManager.Themes.LIGHT; } //dgvReq.AutoGenerateColumns = false; //dgvReq.SelectionMode = DataGridViewSelectionMode.FullRowSelect; btnModificar.Visible = false; btnModificar.Enabled = false; curso = new CursoWS.curso(); inicializarPantalla(); // dtpFechaInicial.MinDate = DateTime.Now; // }
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 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 frmSeleccionarTemasDeCurso(frmInsertarCurso formInsertarCurso, frmPlantillaGestion formPlantillaGest, int cantSemanas, DateTime fechaInicial, DateTime fechaFinal, BindingList <TemaWS.tema> temas, string nombreCurso) { this.formInsertarCurso = formInsertarCurso; this.formPlantillaGest = formPlantillaGest; this.numSemanas = cantSemanas; this.fechaInicialCurso = fechaInicial; this.fechaFinCurso = fechaFinal; this.temasCurso = temas; this.DoubleBuffered = true; InitializeComponent(); Design.Ini(this); if (Design.tema == 'd') { ThemeManager.Theme = MaterialSkinManager.Themes.DARK; } else { ThemeManager.Theme = MaterialSkinManager.Themes.LIGHT; } dgvTemas.AutoGenerateColumns = false; dgvTemas.SelectionMode = DataGridViewSelectionMode.FullRowSelect; daoTema = new TemaWS.TemaWSClient(); //Nombre Curso: lblNombreCurso.Text = "Curso: " + nombreCurso; // dtpFechaInicial.CustomFormat = "dd/MM/yyyy"; dtpFechaInicial.Format = DateTimePickerFormat.Custom; dtpFechaInicial.Enabled = false; dtpFechaFin.CustomFormat = "dd/MM/yyyy"; dtpFechaFin.Format = DateTimePickerFormat.Custom; dtpFechaFin.Enabled = false; inicializarPantalla(); }
public frmGestionarModuloAdmin(frmPlantillaGestion plantilla) { this.DoubleBuffered = true; InitializeComponent(); Design.Ini(this); if (Design.tema == 'd') { ThemeManager.Theme = MaterialSkinManager.Themes.DARK; } else { ThemeManager.Theme = MaterialSkinManager.Themes.LIGHT; } plantillaGestion = plantilla; materialButton1.Visible = true; materialButton2.Visible = true; }
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; } }