Initial version which supports selecting bike by bike id.

This commit is contained in:
Oliver Hauff 2021-07-14 20:39:47 +02:00
parent e1e29da71a
commit 4394b6964a
6 changed files with 47 additions and 23 deletions

View file

@ -11,9 +11,14 @@
<ContentPage.Content>
<Frame>
<StackLayout>
<Label Text="Welcome to Xamarin.Forms!"
VerticalOptions="CenterAndExpand"
HorizontalOptions="CenterAndExpand" />
<Entry
Placeholder="Bike id hier eingeben"
Text="{Binding BikeIdUserInput}">
</Entry>
<Button
Text="Wählen"
Command="{Binding OnSelectBikeRequest}">
</Button>
<ListView
x:Name="FindBikeListView"
SelectionMode="None"

View file

@ -213,6 +213,15 @@ namespace TINK.MultilingualResources {
}
}
/// <summary>
/// Looks up a localized string similar to Checking state permissions....
/// </summary>
public static string ActivityTextCheckBluetoothState {
get {
return ResourceManager.GetString("ActivityTextCheckBluetoothState", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Closing lock....
/// </summary>
@ -366,6 +375,15 @@ namespace TINK.MultilingualResources {
}
}
/// <summary>
/// Looks up a localized string similar to Loading Bikes....
/// </summary>
public static string ActivityTextFindBikeLoadingBikes {
get {
return ResourceManager.GetString("ActivityTextFindBikeLoadingBikes", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Loading Stations and Bikes....
/// </summary>
@ -375,15 +393,6 @@ namespace TINK.MultilingualResources {
}
}
/// <summary>
/// Looks up a localized string similar to Check Bluetooth state and location permissions....
/// </summary>
public static string ActivityTextMyBikesCheckBluetoothState {
get {
return ResourceManager.GetString("ActivityTextMyBikesCheckBluetoothState", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Loading reserved/ booked bikes....
/// </summary>

View file

@ -120,9 +120,6 @@
<data name="ActivityTextSearchBikes" xml:space="preserve">
<value>Suche Schlösser...</value>
</data>
<data name="ActivityTextMyBikesCheckBluetoothState" xml:space="preserve">
<value>Prüfe Berechtigungen...</value>
</data>
<data name="ActivityTextCenterMap" xml:space="preserve">
<value>Zentriere Karte...</value>
</data>
@ -607,4 +604,10 @@ Layout Anzeige Radnamen und nummern verbessert.</value>
<data name="MarkingFindBike" xml:space="preserve">
<value>Fahrrad Wählen</value>
</data>
<data name="ActivityTextCheckBluetoothState" xml:space="preserve">
<value>Prüfe Status und Berechtigungen...</value>
</data>
<data name="ActivityTextFindBikeLoadingBikes" xml:space="preserve">
<value>Lade Räder...</value>
</data>
</root>

View file

@ -283,9 +283,6 @@ Please login to app once again. In case this fails please check on website if th
<data name="ActivityTextCenterMap" xml:space="preserve">
<value>Centering map...</value>
</data>
<data name="ActivityTextMyBikesCheckBluetoothState" xml:space="preserve">
<value>Check Bluetooth state and location permissions...</value>
</data>
<data name="ActivityTextMyBikesLoadingBikes" xml:space="preserve">
<value>Loading reserved/ booked bikes...</value>
</data>
@ -703,4 +700,10 @@ Layout of bike names and id display improved.</value>
<data name="MarkingFindBike" xml:space="preserve">
<value>Find Bike</value>
</data>
<data name="ActivityTextCheckBluetoothState" xml:space="preserve">
<value>Checking state permissions...</value>
</data>
<data name="ActivityTextFindBikeLoadingBikes" xml:space="preserve">
<value>Loading Bikes...</value>
</data>
</root>

View file

@ -150,10 +150,6 @@
<source>Searching locks...</source>
<target state="translated">Suche Schlösser...</target>
</trans-unit>
<trans-unit id="ActivityTextMyBikesCheckBluetoothState" translate="yes" xml:space="preserve">
<source>Check Bluetooth state and location permissions...</source>
<target state="translated">Prüfe Berechtigungen...</target>
</trans-unit>
<trans-unit id="ActivityTextCenterMap" translate="yes" xml:space="preserve">
<source>Centering map...</source>
<target state="translated">Zentriere Karte...</target>
@ -813,6 +809,14 @@ Layout Anzeige Radnamen und nummern verbessert.</target>
<source>Find Bike</source>
<target state="translated">Fahrrad Wählen</target>
</trans-unit>
<trans-unit id="ActivityTextCheckBluetoothState" translate="yes" xml:space="preserve">
<source>Checking state permissions...</source>
<target state="translated">Prüfe Status und Berechtigungen...</target>
</trans-unit>
<trans-unit id="ActivityTextFindBikeLoadingBikes" translate="yes" xml:space="preserve">
<source>Loading Bikes...</source>
<target state="translated">Lade Räder...</target>
</trans-unit>
</group>
</body>
</file>

View file

@ -113,7 +113,7 @@ namespace TINK.ViewModel.MyBikes
}
// Check bluetooth and location permission and states
ActionText = AppResources.ActivityTextMyBikesCheckBluetoothState;
ActionText = AppResources.ActivityTextCheckBluetoothState;
if (bikesOccupied.Response.FirstOrDefault(x => x is BikeInfo btBike) != null
&& RuntimePlatform == Device.Android)