mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-12-22 23:26:31 +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
|
<Entry
|
||||||
Placeholder="Fahrrad-Nummer bitte hier eingeben"
|
Placeholder="Fahrrad-Nummer bitte hier eingeben"
|
||||||
IsVisible="{Binding IsSelectBikeVisible}"
|
IsVisible="{Binding IsSelectBikeVisible}"
|
||||||
|
MaxLength="10"
|
||||||
Text="{Binding BikeIdUserInput}">
|
Text="{Binding BikeIdUserInput}">
|
||||||
</Entry>
|
</Entry>
|
||||||
<Button
|
<Button
|
||||||
|
|
|
@ -116,7 +116,7 @@ namespace TINK.ViewModel.FindBike
|
||||||
/// <summary> Select a bike by ID</summary>
|
/// <summary> Select a bike by ID</summary>
|
||||||
public async Task SelectBike()
|
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)
|
if (selectedBike == null)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue