private void AgregarButton_Click(object sender, RoutedEventArgs e)
        {
            if (OrdenesDataGrid.ItemsSource != null)
            {
                this.Detalles = (List <OrdenesDetalle>)OrdenesDataGrid.ItemsSource;
            }
            this.Detalles.Add(new OrdenesDetalle
            {
                OrdenId    = Convert.ToInt32(OrdenIdTextBox.Text),
                ProductoId = Convert.ToInt32(ProductoTextBox.Text),
                Cantidad   = Convert.ToInt32(CantidadTextBox.Text)
            });
            CargarGrid();
            int valor = Convert.ToInt32(CantidadTextBox.Text);
            int id    = Convert.ToInt32(ProductoTextBox.Text);

            ProductoBLL.DisminuirInventario(id, valor);
            ProductoTextBox.Text = string.Empty;
            CantidadTextBox.Text = string.Empty;
        }