private void btnReportUsuarios_Click(object sender, EventArgs e) { this.Close(); ReporteUsuarios reportU = new ReporteUsuarios(); reportU.Show(); }
private void Reportebutton_Click(object sender, EventArgs e) { if (lista.Count == 0) { lista = BLL.UsuarioBLL.Buscar(); } ReporteUsuarios abrir = new ReporteUsuarios(lista); abrir.Show(); }
private void ReporteButton_Click(object sender, EventArgs e) { Usuarios usuarios = new Usuarios(); if (ConsultadataGridView.Rows.Count > 0 && ConsultadataGridView.CurrentRow != null) { List <Usuarios> Detalle = (List <Usuarios>)ConsultadataGridView.DataSource; int id = Detalle.ElementAt(ConsultadataGridView.CurrentRow.Index).UsuariosId; ReporteUsuarios abrir = new ReporteUsuarios(UsusariosBLL.GetList(x => x.UsuariosId == id)); abrir.Show(); } else { MessageBox.Show("No existe", "Fallo", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } }