-
-
+ @if (ShowScanBarcode)
+ {
+
+
-
-
-
-
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
-
+ }
+ else
+ {
+
+ }
@@ -48,4 +56,10 @@
}
protected string qrCodeVal { get; set; } = "https://office.egalware.com/WDC/UI";
+
+ protected void ToggleCodeScan()
+ {
+ ShowScanBarcode = !ShowScanBarcode;
+ }
+ private bool ShowScanBarcode = true;
}
diff --git a/EgwCoreLib.BlazorTest/Program.cs b/EgwCoreLib.BlazorTest/Program.cs
index 14b7b33..a7dfe61 100644
--- a/EgwCoreLib.BlazorTest/Program.cs
+++ b/EgwCoreLib.BlazorTest/Program.cs
@@ -1,6 +1,7 @@
using EgwCoreLib.BlazorTest;
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Web;
+using Microsoft.AspNetCore.Mvc.RazorPages;
using Radzen;
var builder = WebApplication.CreateBuilder(args);
@@ -28,6 +29,9 @@ if (!app.Environment.IsDevelopment())
app.UseHsts();
}
+
+app.UsePathBase("/BlazorTest/");
+
// disabilita risposta compressa in debug
if (!app.Environment.IsDevelopment())
{
diff --git a/EgwCoreLib.Razor/BarcodeReader.razor.cs b/EgwCoreLib.Razor/BarcodeReader.razor.cs
index d65730d..19492c3 100644
--- a/EgwCoreLib.Razor/BarcodeReader.razor.cs
+++ b/EgwCoreLib.Razor/BarcodeReader.razor.cs
@@ -172,6 +172,9 @@ namespace EgwCoreLib.Razor
{
if (!firstRender) return;
Storage = new StorageService(JS);
+#if false
+ module = await JS.InvokeAsync
("import", "./_content/EgwCoreLib.Razor/BarcodeReader.razor.js" + "?v=" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version);
+#endif
module = await JS.InvokeAsync("import", "./_content/EgwCoreLib.Razor/BarcodeReader.razor.js" + "?v=" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version);
Instance = DotNetObjectReference.Create(this);
if (Options == null)
diff --git a/EgwCoreLib.Razor/EgwCoreLib.Razor.csproj b/EgwCoreLib.Razor/EgwCoreLib.Razor.csproj
index 77bf6d2..b680d11 100644
--- a/EgwCoreLib.Razor/EgwCoreLib.Razor.csproj
+++ b/EgwCoreLib.Razor/EgwCoreLib.Razor.csproj
@@ -75,8 +75,8 @@
-
-
+
+