2021-11-07 19:42:59 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<ViewCell xmlns="http://xamarin.com/schemas/2014/forms"
|
|
|
|
xmlns:conv="clr-namespace:TINK.View"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
|
|
xmlns:d="http://xamarin.com/schemas/2014/forms/design"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:resources="clr-namespace:TINK.MultilingualResources;assembly=TINKLib"
|
|
|
|
mc:Ignorable="d"
|
|
|
|
x:Class="TINK.View.Bike.ILockItBike">
|
|
|
|
<ContentView>
|
|
|
|
<ContentView.Resources>
|
|
|
|
<conv:StringNotNullOrEmptyToVisibleConverter x:Key="Label_Converter"/>
|
|
|
|
</ContentView.Resources>
|
|
|
|
<StackLayout
|
|
|
|
Padding="10">
|
|
|
|
<Label
|
|
|
|
FontAttributes="Bold"
|
|
|
|
FontSize="Large"
|
|
|
|
HorizontalTextAlignment="Center"
|
|
|
|
Text="{Binding Name}"/>
|
|
|
|
<Label
|
|
|
|
FontAttributes="Bold"
|
|
|
|
HorizontalTextAlignment="Center"
|
|
|
|
IsVisible="{Binding DisplayId, Converter={StaticResource Label_Converter}}"
|
|
|
|
Text="{Binding DisplayId}"/>
|
|
|
|
<Label
|
|
|
|
Text="{Binding StateText}"
|
|
|
|
TextColor="{Binding StateColor}"/>
|
|
|
|
<Label
|
|
|
|
Text="{Binding ErrorText}"
|
|
|
|
IsVisible="{Binding ErrorText, Converter={StaticResource Label_Converter}}"
|
|
|
|
TextColor="Red"/>
|
|
|
|
<Button
|
|
|
|
Text="{Binding ButtonText}"
|
|
|
|
IsVisible="{Binding IsButtonVisible}"
|
|
|
|
IsEnabled="{Binding IsIdle}"
|
|
|
|
Command="{Binding OnButtonClicked}"/>
|
|
|
|
<Button
|
|
|
|
Text="{Binding LockitButtonText}"
|
|
|
|
IsVisible="{Binding IsLockitButtonVisible}"
|
|
|
|
IsEnabled="{Binding IsIdle}"
|
|
|
|
Command="{Binding OnLockitButtonClicked}"/>
|
|
|
|
<Grid
|
|
|
|
IsVisible="{Binding TariffDescription.Header, Converter={StaticResource Label_Converter}}">
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
2022-01-04 18:54:03 +01:00
|
|
|
<RowDefinition Height="Auto" />
|
2021-11-07 19:42:59 +01:00
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
</Grid.ColumnDefinitions>
|
2022-04-10 17:38:34 +02:00
|
|
|
<Label
|
|
|
|
Text=
|
|
|
|
"{x:Static resources:AppResources.MessageBikesManagementTariffDescriptionTariffHeader}"
|
|
|
|
FontAttributes="Bold"/>
|
2021-11-07 19:42:59 +01:00
|
|
|
<Label
|
|
|
|
Text=
|
|
|
|
"{Binding TariffDescription.Header}"
|
2022-04-10 17:38:34 +02:00
|
|
|
Grid.Column="1"
|
|
|
|
Grid.ColumnSpan="2"
|
2021-11-07 19:42:59 +01:00
|
|
|
FontAttributes="Bold"/>
|
|
|
|
<Label
|
|
|
|
Text="{x:Static resources:AppResources.MessageBikesManagementTariffDescriptionFreeTimePerSession}"
|
|
|
|
IsVisible="{Binding TariffDescription.FreeTimePerSession, Converter={StaticResource Label_Converter}}"
|
|
|
|
Grid.Row="1"/>
|
|
|
|
<Label
|
|
|
|
Text="{Binding TariffDescription.FreeTimePerSession}"
|
|
|
|
IsVisible="{Binding TariffDescription.FreeTimePerSession, Converter={StaticResource Label_Converter}}"
|
|
|
|
Grid.Row="1"
|
|
|
|
Grid.Column="1"/>
|
|
|
|
<Label
|
|
|
|
Text="{x:Static resources:AppResources.MessageBikesManagementTariffDescriptionFeeEuroPerHour}"
|
|
|
|
IsVisible="{Binding TariffDescription.FeeEuroPerHour, Converter={StaticResource Label_Converter}}"
|
|
|
|
Grid.Row="2"/>
|
|
|
|
<Label
|
|
|
|
Text="{Binding TariffDescription.FeeEuroPerHour}"
|
|
|
|
IsVisible="{Binding TariffDescription.FeeEuroPerHour, Converter={StaticResource Label_Converter}}"
|
|
|
|
Grid.Row="2"
|
|
|
|
Grid.Column="1"/>
|
|
|
|
<Label
|
|
|
|
Text="{x:Static resources:AppResources.MessageBikesManagementTariffDescriptionMaxFeeEuroPerDay}"
|
|
|
|
IsVisible="{Binding TariffDescription.MaxFeeEuroPerDay, Converter={StaticResource Label_Converter}}"
|
|
|
|
Grid.Row="3"/>
|
|
|
|
<Label
|
|
|
|
Text="{Binding TariffDescription.MaxFeeEuroPerDay}"
|
|
|
|
IsVisible="{Binding TariffDescription.MaxFeeEuroPerDay, Converter={StaticResource Label_Converter}}"
|
|
|
|
Grid.Row="3"
|
|
|
|
Grid.Column="1"/>
|
|
|
|
<Label
|
|
|
|
Text="{x:Static resources:AppResources.MessageBikesManagementTariffDescriptionAboEuroPerMonth}"
|
|
|
|
IsVisible="{Binding TariffDescription.AboEuroPerMonth, Converter={StaticResource Label_Converter}}"
|
|
|
|
Grid.Row="4"/>
|
|
|
|
<Label
|
|
|
|
Text="{Binding TariffDescription.AboEuroPerMonth}"
|
|
|
|
IsVisible="{Binding TariffDescription.AboEuroPerMonth, Converter={StaticResource Label_Converter}}"
|
|
|
|
Grid.Row="4"
|
|
|
|
Grid.Column="1"/>
|
2022-01-04 18:54:03 +01:00
|
|
|
<Label
|
|
|
|
TextType="Html"
|
|
|
|
Text="{Binding TariffDescription.OperatorAgb}"
|
|
|
|
IsVisible="{Binding TariffDescription.OperatorAgb, Converter={StaticResource Label_Converter}}"
|
|
|
|
Grid.Row="5"
|
2022-01-22 18:30:23 +01:00
|
|
|
Grid.ColumnSpan="3">
|
|
|
|
<Label.GestureRecognizers>
|
|
|
|
<TapGestureRecognizer Command="{Binding ShowAgbTappedCommand}"/>
|
|
|
|
</Label.GestureRecognizers>
|
|
|
|
</Label>
|
2021-11-07 19:42:59 +01:00
|
|
|
</Grid>
|
|
|
|
</StackLayout>
|
|
|
|
</ContentView>
|
|
|
|
</ViewCell>
|