public InterfazAgregarCategoriaEmpleado(InterfazListaCategoria padre, Categoria categoria) { Padre = padre; MiCategoria = categoria; InitializeComponent(); dgvEmpleadoProfesor.AllowUserToAddRows = false; dgvEmpleadoProfesor.Visible = false; lblInfoProfesor.Text = ""; CargarCamposFocus(); CargarInterfazBuena(); }
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(); }
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(); }