public VistaPrestamosPendientes(VistaPrestamo vistaPrestamo, GestorPrestamo gestorPrestamo)
        {
            InitializeComponent();

            this.vistaPrestamo  = vistaPrestamo;
            this.gestorPrestamo = gestorPrestamo;
        }
        private void CargarDataGridView(VistaPrestamo vistaPrestamo)
        {
            List <Prestamo> prestamos = this.repositorioPrestamo.Prestamos;

            foreach (Prestamo prestamo in prestamos)
            {
                vistaPrestamo.MostrarRegistro(ObtenerAtributos(prestamo));
            }
        }
        private void agregarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var vistaPrestamo = new VistaPrestamo(this, this.repositorioRecurso, this.repositorioSolicitante);

            if (this.repositorioPrestamo != null)
            {
                CargarDataGridView(vistaPrestamo);
            }

            vistaPrestamo.Show();
        }
Exemple #4
0
        public GestorPrestamo(VistaPrestamo vistaPrestamo,
                              VistaPrincipal vistaPrincipal,
                              RepositorioRecursos repositorioRecursos,
                              RepositorioSolicitante repositorioSolicitante)
        {
            this.vistaPrestamo  = vistaPrestamo;
            this.vistaPrincipal = vistaPrincipal;

            this.repositorioPrestamo    = new RepositorioPrestamo();
            this.repositorioRecursos    = repositorioRecursos;
            this.repositorioSolicitante = repositorioSolicitante;
        }
Exemple #5
0
        public VistaSeleccionSolicitante(VistaPrestamo vistaPrestamo)
        {
            InitializeComponent();

            this.vistaPrestamo = vistaPrestamo;
        }
Exemple #6
0
        private void agregarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            VistaPrestamo vistaPrestamo = new VistaPrestamo();

            vistaPrestamo.Show();
        }
 public GestorPrestamo(VistaPrestamo vistaPrestamo)
 {
     this.vistaPrestamo = vistaPrestamo;
 }
        public VistaRecursoSeleccionado(VistaPrestamo vistaPrestamo)
        {
            InitializeComponent();

            this.vistaPrestamo = vistaPrestamo;
        }