Esempio n. 1
0
        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();
        }