App: Fix GroupSeparator bug
This commit is contained in:
@ -12,7 +12,7 @@ namespace Elwig.Dialogs {
|
||||
InitializeComponent();
|
||||
TextLsNr.Text = lsnr;
|
||||
TextMember.Text = name;
|
||||
TextWeight.Text = $"{weight:N0}\u202fkg";
|
||||
TextWeight.Text = $"{weight:N0}{Utils.GroupSeparator}kg";
|
||||
}
|
||||
|
||||
private void ConfirmButton_Click(object sender, RoutedEventArgs evt) {
|
||||
|
@ -1,5 +1,4 @@
|
||||
using Elwig.Helpers;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
|
||||
@ -14,7 +13,7 @@ namespace Elwig.Dialogs {
|
||||
|
||||
private void ConfirmButton_Click(object sender, RoutedEventArgs evt) {
|
||||
DialogResult = true;
|
||||
Price = double.Parse(PriceInput.Text.Replace("\u202f", ""));
|
||||
Price = double.Parse(PriceInput.Text.Replace(Utils.GroupSeparator, ""));
|
||||
Close();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user