private void InitializeRepositories() { this.rubroRepository = new RubroRepository(); this.gradoRepository = new GradoDePublicacionRepository(); this.estadoRepository = new EstadoDePublicacionRepository(); this.tipoUbicacionRepository = new TipoDeUbicacionRepository(); this.publicacionRepository = new PublicacionRepository(); this.ubicacionRepository = new UbicacionRepository(); }
public AgregarUbicacionForm(GenerarPublicacionForm form) { InitializeComponent(); this.form = form; this.tipoUbicacionRepository = new TipoDeUbicacionRepository(); ComboBoxFiller <TipoDeUbicacion, decimal> .Fill(cmbTipoUbicacion) .KeyAs(tipo => tipo.IdTipoUbicacion) .ValueAs(tipo => tipo.Descripcion) .With(tipoUbicacionRepository.TodosLosTiposDeUbicacion()); }
public AgregarUbicacionForm(EditarPublicacionSeleccionada callerForm) { InitializeComponent(); this.callerForm = callerForm; this.tipoUbicacionRepository = new TipoDeUbicacionRepository(); ComboBoxFiller <TipoDeUbicacion, decimal> .Fill(cmbTipoUbicacion) .KeyAs(tipo => tipo.IdTipoUbicacion) .ValueAs(tipo => tipo.Descripcion) .With(tipoUbicacionRepository.TodosLosTiposDeUbicacion()); this.InitializeValidator(); }