示例#1
0
        private void rPeliculas_Load(object sender, EventArgs e)
        {
            categoriaIdComboBox.DataSource    = CategoriasBll.GetLista();
            categoriaIdComboBox.ValueMember   = "CategoriaId";
            categoriaIdComboBox.DisplayMember = "Descripcion";

            autorIdComboBox.DataSource    = AutorBLL.GetLista();
            autorIdComboBox.ValueMember   = "AutorId";
            autorIdComboBox.DisplayMember = "Nombres";
        }
        private void ImprimirButton_Click(object sender, EventArgs e)
        {
            ReportingViewer viewer = new ReportingViewer();

            viewer.RptViewer.Reset();
            viewer.RptViewer.ProcessingMode = Microsoft.Reporting.WinForms.ProcessingMode.Local;

            viewer.RptViewer.LocalReport.ReportPath = @"Reportes\ListadoCategorias.rdlc";

            viewer.RptViewer.LocalReport.DataSources.Clear();

            viewer.RptViewer.LocalReport.DataSources.Add(
                new ReportDataSource("Categorias",
                                     CategoriasBll.GetLista()));

            viewer.RptViewer.LocalReport.Refresh();

            viewer.Show();
        }
示例#3
0
 private void button1_Click(object sender, EventArgs e)
 {
     CategoriasBll.Insertar(LlenaClase());
 }
示例#4
0
 private void Buscarbutton_Click(object sender, EventArgs e)
 {
     LlenaCampos(CategoriasBll.Buscar(Convert.ToInt32(CategoriaIdtextBox.Text)));
 }
 private void BuscarButton_Click(object sender, EventArgs e)
 {
     DatosDataGridView.DataSource = CategoriasBll.GetLista();
 }