From 749db77ec9cd13e41b346a86267fa6f5a379eca5 Mon Sep 17 00:00:00 2001 From: PTKu Date: Fri, 3 Nov 2023 12:31:03 +0100 Subject: [PATCH 1/2] Create draft PR for #252 From b143f7f5e0a8dcd3eae0babd098dce04e32e7493 Mon Sep 17 00:00:00 2001 From: PTKu <61538034+PTKu@users.noreply.github.com> Date: Fri, 3 Nov 2023 16:09:33 +0100 Subject: [PATCH 2/2] fixes an issue an issue when modifying the float value trims sep --- .../Templates/Base/Online/Control/OnlinerLRealControlView.razor | 2 +- .../Templates/Base/Online/Control/OnlinerRealControlView.razor | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AXSharp.blazor/src/AXSharp.Presentation.Blazor.Controls/Templates/Base/Online/Control/OnlinerLRealControlView.razor b/src/AXSharp.blazor/src/AXSharp.Presentation.Blazor.Controls/Templates/Base/Online/Control/OnlinerLRealControlView.razor index d2a66a54..8004c0a4 100644 --- a/src/AXSharp.blazor/src/AXSharp.Presentation.Blazor.Controls/Templates/Base/Online/Control/OnlinerLRealControlView.razor +++ b/src/AXSharp.blazor/src/AXSharp.Presentation.Blazor.Controls/Templates/Base/Online/Control/OnlinerLRealControlView.razor @@ -21,7 +21,7 @@ private void Change(ChangeEventArgs args) { - if (Double.TryParse(args.Value.ToString().Replace('.', ','), out var parseValue)) + if (Double.TryParse(args.Value.ToString(), out var parseValue)) Value = parseValue; Key++; diff --git a/src/AXSharp.blazor/src/AXSharp.Presentation.Blazor.Controls/Templates/Base/Online/Control/OnlinerRealControlView.razor b/src/AXSharp.blazor/src/AXSharp.Presentation.Blazor.Controls/Templates/Base/Online/Control/OnlinerRealControlView.razor index dab306cb..4269acaa 100644 --- a/src/AXSharp.blazor/src/AXSharp.Presentation.Blazor.Controls/Templates/Base/Online/Control/OnlinerRealControlView.razor +++ b/src/AXSharp.blazor/src/AXSharp.Presentation.Blazor.Controls/Templates/Base/Online/Control/OnlinerRealControlView.razor @@ -21,7 +21,7 @@ private void Change(ChangeEventArgs args) { - if (Single.TryParse(args.Value.ToString().Replace('.', ','), out var parseValue)) + if (Single.TryParse(args.Value.ToString(), out var parseValue)) Value = parseValue; Key++;