public HistorialBuscarController(HistorialBuscar vista) { this.vista = vista; vista.Load += new EventHandler(mostrarRegistrosTipo); vista.txtBuscar.TextChanged += new EventHandler(mostrarRegistrosTipo); vista.btnAgregar.Click += new EventHandler(enviarDatos); }
private void abrirFormulario(object sender, EventArgs e) { if (((PictureBox)sender).Name == "btnNuevo") { Actualizar = false; VisitaBuscar visita = new VisitaBuscar(); vista.AddOwnedForm(visita); visita.Show(); } if (((PictureBox)sender).Name == "btnAbrir") { Actualizar = true; HistorialBuscar historial = new HistorialBuscar(); vista.AddOwnedForm(historial); historial.Show(); } }