Example #1
0
        public InterfazAgregarCategoriaEmpleado(InterfazListaCategoria padre, Categoria categoria)
        {
            Padre       = padre;
            MiCategoria = categoria;
            InitializeComponent();



            dgvEmpleadoProfesor.AllowUserToAddRows = false;
            dgvEmpleadoProfesor.Visible            = false;
            lblInfoProfesor.Text = "";

            CargarCamposFocus();
            CargarInterfazBuena();
        }
Example #2
0
        public InterfazAltaCategoria(InterfazListaCategoria interfazListaCategoria)
        {
            this.Padre = interfazListaCategoria;
            InitializeComponent();

            ControladorDeporte  Cdeporte = new ControladorDeporte();
            List <ModelDeporte> lista    = new List <ModelDeporte>();

            lista = Cdeporte.ListarTodosDeportes();

            cbxDeporte.DataSource    = lista;
            cbxDeporte.ValueMember   = "IdDeporte";
            cbxDeporte.DisplayMember = "Nombre";

            CargarCamposFocus();
            CargarInterfazBuena();
        }
Example #3
0
        public InterfazModificarCategoria(InterfazListaCategoria padre, ModelCategoria categoria)
        {
            Padre     = padre;
            Categoria = categoria;
            InitializeComponent();
            txtNombreCategoria.Text         = Categoria.Nombre;
            dtpInicioCategoria.Value        = Categoria.FechaInicio;
            dtpFinCategoria.Value           = Categoria.FechaFin;
            txtImporteMensualCategoria.Text = Categoria.MiCategoria.Costo + "";


            ControladorDeporte  Cdeporte = new ControladorDeporte();
            List <ModelDeporte> lista    = new List <ModelDeporte>();

            lista = Cdeporte.ListarTodosDeportes();

            txtDeporteCategoria.Text     = Categoria.Deporte.Nombre;
            txtDeporteCategoria.ReadOnly = true;
            txtNombreCategoria.ReadOnly  = true;
            CargarCamposFocus();
            CargarInterfazBuena();
        }