Beispiel #1
0
        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();
        }
Beispiel #2
0
        public frmCrearTemaDeCurso()
        {
            this.DoubleBuffered = true;
            InitializeComponent();

            Design.Ini(this);
            if (Design.tema == 'd')
            {
                ThemeManager.Theme = MaterialSkinManager.Themes.DARK;
            }
            else
            {
                ThemeManager.Theme = MaterialSkinManager.Themes.LIGHT;
            }
            daoTema = new TemaWS.TemaWSClient();
            inicializarPantalla();
        }