diff --git a/EgwCoreLib.BlazorTest/Pages/TestCalendario.razor.cs b/EgwCoreLib.BlazorTest/Pages/TestCalendario.razor.cs index 9740292..8f826ee 100644 --- a/EgwCoreLib.BlazorTest/Pages/TestCalendario.razor.cs +++ b/EgwCoreLib.BlazorTest/Pages/TestCalendario.razor.cs @@ -25,7 +25,7 @@ namespace EgwCoreLib.BlazorTest.Pages DateTime newDate = dtCurr.AddDays(rnd.Next(-5, 10)).Date; if (!DateCheck.ContainsKey(newDate)) { - DateCheck.Add(newDate, "bg-success text-light rounded-circle p-2"); + DateCheck.Add(newDate, "bg-danger text-light rounded-circle p-2"); } else { diff --git a/EgwCoreLib.Razor/BarcodeReader.razor.cs b/EgwCoreLib.Razor/BarcodeReader.razor.cs index 19492c3..7998a3a 100644 --- a/EgwCoreLib.Razor/BarcodeReader.razor.cs +++ b/EgwCoreLib.Razor/BarcodeReader.razor.cs @@ -21,7 +21,7 @@ namespace EgwCoreLib.Razor /// Close button title /// [Parameter] - public string CloseBtnTitle { get; set; } = "关闭"; + public string CloseBtnTitle { get; set; } = "Close"; /// /// Decode All Formats, performance is poor, you can set options.formats to customize @@ -68,7 +68,7 @@ namespace EgwCoreLib.Razor /// Reset button title /// [Parameter] - public string ResetBtnTitle { get; set; } = "复位"; + public string ResetBtnTitle { get; set; } = "Reset"; /// /// Save the last used device ID to be called automatically next time @@ -80,7 +80,7 @@ namespace EgwCoreLib.Razor /// Scan button title /// [Parameter] - public string ScanBtnTitle { get; set; } = "扫码"; + public string ScanBtnTitle { get; set; } = "Scan"; /// /// Scan result callback method @@ -92,7 +92,7 @@ namespace EgwCoreLib.Razor /// Select device button title /// [Parameter] - public string SelectDeviceBtnTitle { get; set; } = "选择设备"; + public string SelectDeviceBtnTitle { get; set; } = "Select Device"; /// /// Use builtin Div @@ -172,10 +172,10 @@ namespace EgwCoreLib.Razor { if (!firstRender) return; Storage = new StorageService(JS); + module = await JS.InvokeAsync("import", "./_content/EgwCoreLib.Razor/BarcodeReader.razor.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/Sorter.razor.cs b/EgwCoreLib.Razor/Sorter.razor.cs index 2d01887..7e99949 100644 --- a/EgwCoreLib.Razor/Sorter.razor.cs +++ b/EgwCoreLib.Razor/Sorter.razor.cs @@ -58,8 +58,8 @@ namespace EgwCoreLib.Razor /// protected override void OnParametersSet() { - isCurrent=ParamName.Equals(CurrParam); - cssStyle= isCurrent ? "text-primary" : "text-secondary opacity-25"; + isCurrent = ParamName.Equals(CurrParam); + cssStyle = isCurrent ? "text-primary" : "text-secondary opacity-25"; currIcon = isCurrent ? (IsAsc ? SortAscCss : SortDescCss) : UnsortCss; } @@ -93,7 +93,7 @@ namespace EgwCoreLib.Razor #region Private Methods - private async void sortAct() + private async Task sortAct() { IsAsc = !IsAsc; await sortReq.InvokeAsync(new SortCallBack() { ParamName = ParamName, IsAscending = IsAsc });