Example #1
0
        private void frmVentas_Load(object sender, EventArgs e)
        {
            //inventarioBindingSource1.DataSource = inv;
            empleadosBindingSource.DataSource   = cDocumentos.ListadoDocumentos();
            empleadosBindingSource.DataSource   = cEmpleados.ListadoEmpleados();
            clientesBindingSource.DataSource    = cCliente.ListadoClientes();
            inventarioBindingSource1.DataSource = cInventario.ListadoInventarios();
            documentosBindingSource.DataSource  = cDocumentos.ListadoDocumentos();

            idEmpleadoComboBox.Enabled    = false;
            idClienteComboBox.Enabled     = false;
            idDocumentoComboBox.Enabled   = false;
            btnBuscarProdcuto.Enabled     = false;
            idInventarioComboBox.Enabled  = true;
            precioTextBox.Enabled         = true;
            cantidadNumericUpDown.Enabled = false;
            totalTextBox.Enabled          = true;

            detallesVentaDataGridView.Enabled = false;
        }
Example #2
0
 public void CargarTabla()
 {
     clientesDataGridView.Rows.Clear();
     clientesBindingSource.DataSource = cClientes.ListadoClientes();
 }