コード例 #1
0
        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();
        }
コード例 #2
0
        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();
        }