mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-12-22 06:56:25 +01:00
Imput lentght restricted to 10 chars.
Comparison done case insensitve.
This commit is contained in:
parent
0c0baf1b10
commit
d874877998
2 changed files with 2 additions and 1 deletions
|
@ -14,6 +14,7 @@
|
|||
<Entry
|
||||
Placeholder="Fahrrad-Nummer bitte hier eingeben"
|
||||
IsVisible="{Binding IsSelectBikeVisible}"
|
||||
MaxLength="10"
|
||||
Text="{Binding BikeIdUserInput}">
|
||||
</Entry>
|
||||
<Button
|
||||
|
|
|
@ -116,7 +116,7 @@ namespace TINK.ViewModel.FindBike
|
|||
/// <summary> Select a bike by ID</summary>
|
||||
public async Task SelectBike()
|
||||
{
|
||||
var selectedBike = Bikes.FirstOrDefault(x => x.Id == BikeIdUserInput);
|
||||
var selectedBike = Bikes.FirstOrDefault(x => x.Id.Equals(BikeIdUserInput.Trim(), StringComparison.OrdinalIgnoreCase));
|
||||
|
||||
if (selectedBike == null)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue