rename TextUtils RegexFilter.'Integer' -> 'UnsignedInteger' (it's always prevented negative numbers)
This commit is contained in:
1 parent
42ce4f1bf8
commit
37356b2b59
3 files changed
+3
-3
No files matched your search
@@ -132,7 +132,7 @@
|
||||
<ComboBox Grid.Column="3" ItemsSource="{u:EnumBindingSource {u:Nested sp:LadderSettings.BadgeStyle}}" SelectedItem="{Binding badge_style}"/>
|
||||
|
||||
<TextBlock Grid.Row="2" Grid.Column="1" VerticalAlignment="Center">Alternate Order Qty</TextBlock>
|
||||
<TextBox Grid.Row="2" Grid.Column="3" Text="{Binding alternate_order_size}" u:TextBoxBehavior.InputFilter="{u:RegexInputFilter Regex={x:Static Member=Integer, MemberType={u:Nested txt:TextUtils.RegexFilters}}}"/>
|
||||
<TextBox Grid.Row="2" Grid.Column="3" Text="{Binding alternate_order_size}" u:TextBoxBehavior.InputFilter="{u:RegexInputFilter Regex={x:Static Member=UnsignedInteger, MemberType={u:Nested txt:TextUtils.RegexFilters}}}"/>
|
||||
|
||||
<TabControl Grid.Row="4" Grid.ColumnSpan="5" Width="543" Height="275">
|
||||
<TabControl.ItemContainerStyle>
|
||||
|
||||
@@ -466,7 +466,7 @@
|
||||
</Button>
|
||||
<!-- Qty textbox -->
|
||||
<TextBox
|
||||
mbts:TextBoxBehavior.InputFilter="{mbts:RegexInputFilter Regex={x:Static Member=Integer, MemberType={mbts:Nested txt:TextUtils.RegexFilters}}}"
|
||||
mbts:TextBoxBehavior.InputFilter="{mbts:RegexInputFilter Regex={x:Static Member=UnsignedInteger, MemberType={mbts:Nested txt:TextUtils.RegexFilters}}}"
|
||||
mbts:TextBoxBehavior.IncrementDecrementOnMouseClick="True"
|
||||
HorizontalContentAlignment="Right"
|
||||
Margin="2"
|
||||
|
||||
@@ -137,7 +137,7 @@ namespace mbts.ui.utility.text {
|
||||
public static readonly Regex
|
||||
PriceInput = new Regex(@"^-?\d*((-|\.)\d*)?$"),
|
||||
Decimal = new Regex(@"^-?\d*\.?\d*$"),
|
||||
Integer = new Regex(@"^\d*$");
|
||||
UnsignedInteger = new Regex(@"^\d*$");
|
||||
|
||||
public static class Time {
|
||||
public static readonly Regex
|
||||
|
||||
Reference in new issue
Block a user