Пример #1
0
        public FormClientes()
        {
            InitializeComponent();

            _clientes = new ClienteBL();
            listadeClientesBindingSource.DataSource = _clientes.ObtenerClientes();

            _tiposBL = new TiposBL();//
            listaTiposBindingSource.DataSource = _tiposBL.ObtenerTipo();
        }
Пример #2
0
        public FormReportedeClientes()
        {
            InitializeComponent();

            var _clientes    = new ClienteBL();
            var _tipoCliente = new TiposBL();

            var bindingSource = new BindingSource();

            bindingSource.DataSource = _clientes.ObtenerClientes();

            var bindingSource2 = new BindingSource();

            bindingSource2.DataSource = _tipoCliente.ObtenerTipo();

            var reporte = new ReporteClientes();

            reporte.Database.Tables["Clientes"].SetDataSource(bindingSource);
            reporte.Database.Tables["Tipo"].SetDataSource(bindingSource2);

            crystalReportViewer1.ReportSource = reporte;
            crystalReportViewer1.RefreshReport();
        }