+
+ @if (!string.IsNullOrWhiteSpace(invalidCode))
+ {
+
}
-
+ @if (openScan)
+ {
+
+
+
+
+
Inquadra il QR Code
+
+
+ @if (!string.IsNullOrWhiteSpace(invalidCode))
+ {
+
+
+
+ Errore: @invalidCode
+
+
+
+
+
+
+ }
+
+
+
+
+
+ }
+
@if (!openManual && !openScan)
{
-
-
@@ -108,16 +156,25 @@
@code {
[Parameter] public EventCallback Close { get; set; }
[Parameter] public EventCallback Help { get; set; }
- [Parameter] public EventCallback Scan { get; set; }
- [Parameter] public EventCallback Manual { get; set; }
private bool openManual { get; set; } = false;
private bool openScan { get; set; } = false;
- private string registrationCode { get; set; }
- private string invalidCode = string.Empty;
+ private string registrationCode { get; set; } = string.Empty;
+ private string invalidCode { get; set; } = string.Empty;
+
+ // Scanner
+ private ElementReference videoRef;
+ private DotNetObjectReference