English Boards > Support

Error in filteredtextbox

(1/1)

jadeniz:
Hi all.

There's a small error on Samba.Presentation.Common.FilteredTextBox.cs

On   OnPreviewTextInput you define ds (decimal separator) as

var ds = CultureInfo.CurrentUICulture.NumberFormat.NumberDecimalSeparator[0];

It might be

var ds = CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator[0];

because of possible different values.

An example, Peru.
CurrentUICulture=es
CurrentCulture=es-PE
decimal separator es => , (comma)
decimal separator es-PE => . (dot)
so if you use CurrentUICulture is not possible at all input decimal values in number fields.

Navigation

[0] Message Index

Go to full version