コード例 #1
0
        private void btnReportUsuarios_Click(object sender, EventArgs e)
        {
            this.Close();
            ReporteUsuarios reportU = new ReporteUsuarios();

            reportU.Show();
        }
コード例 #2
0
ファイル: Cusuario.cs プロジェクト: Poka16/ProyectoAplicado
        private void Reportebutton_Click(object sender, EventArgs e)
        {
            if (lista.Count == 0)
            {
                lista = BLL.UsuarioBLL.Buscar();
            }
            ReporteUsuarios abrir = new ReporteUsuarios(lista);

            abrir.Show();
        }
コード例 #3
0
        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;
            }
        }