2023-11-21 15:26:57 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2021-11-07 19:42:59 +01:00
|
|
|
<ViewCell xmlns="http://xamarin.com/schemas/2014/forms"
|
2024-04-09 12:53:23 +02:00
|
|
|
xmlns:conv="clr-namespace:ShareeBike.View;assembly=SharedBusinessLogic"
|
2021-11-07 19:42:59 +01:00
|
|
|
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"
|
2024-04-09 12:53:23 +02:00
|
|
|
xmlns:resources="clr-namespace:ShareeBike.MultilingualResources;assembly=SharedBusinessLogic"
|
2021-11-07 19:42:59 +01:00
|
|
|
mc:Ignorable="d"
|
2024-04-09 12:53:23 +02:00
|
|
|
x:Class="ShareeBike.View.Bike.BCBike">
|
|
|
|
<ContentView>
|
|
|
|
<ContentView.Resources>
|
|
|
|
<conv:StringNotNullOrEmptyToVisibleConverter x:Key="Label_Converter"/>
|
|
|
|
</ContentView.Resources>
|
|
|
|
<StackLayout
|
2021-11-07 19:42:59 +01:00
|
|
|
Padding="10">
|
2024-04-09 12:53:23 +02:00
|
|
|
<Label
|
2021-11-07 19:42:59 +01:00
|
|
|
FontAttributes="Bold"
|
|
|
|
Text="{Binding Name}"/>
|
2024-04-09 12:53:23 +02:00
|
|
|
<Label
|
2021-11-07 19:42:59 +01:00
|
|
|
Text="{Binding StateText}"
|
|
|
|
TextColor="{Binding StateColor}"/>
|
2024-04-09 12:53:23 +02:00
|
|
|
<Label
|
2021-11-07 19:42:59 +01:00
|
|
|
Text="{Binding ErrorText}"
|
|
|
|
IsVisible="{Binding ErrorText, Converter={StaticResource Label_Converter}}"
|
|
|
|
TextColor="Red"/>
|
2024-04-09 12:53:23 +02:00
|
|
|
<Button
|
2021-11-07 19:42:59 +01:00
|
|
|
Text="{Binding ButtonText}"
|
|
|
|
IsVisible="{Binding IsButtonVisible}"
|
|
|
|
IsEnabled="{Binding IsIdle}"
|
|
|
|
Command="{Binding OnButtonClicked}"/>
|
2024-04-09 12:53:23 +02:00
|
|
|
<Grid
|
2021-11-07 19:42:59 +01:00
|
|
|
IsVisible="{Binding TariffDescription.Header, Converter={StaticResource Label_Converter}}">
|
2024-04-09 12:53:23 +02:00
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
<RowDefinition Height="Auto" />
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="Auto" />
|
|
|
|
<ColumnDefinition Width="*" />
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Label
|
2021-11-07 19:42:59 +01:00
|
|
|
Text=
|
|
|
|
"{Binding TariffDescription.Header}"
|
|
|
|
Grid.ColumnSpan="3"
|
|
|
|
FontAttributes="Bold"/>
|
2024-04-09 12:53:23 +02:00
|
|
|
<Label
|
2021-11-07 19:42:59 +01:00
|
|
|
Text="{x:Static resources:AppResources.MessageBikesManagementTariffDescriptionFreeTimePerSession}"
|
|
|
|
IsVisible="{Binding TariffDescription.FreeTimePerSession, Converter={StaticResource Label_Converter}}"
|
|
|
|
Grid.Row="1"/>
|
2024-04-09 12:53:23 +02:00
|
|
|
<Label
|
2021-11-07 19:42:59 +01:00
|
|
|
Text="{Binding TariffDescription.FreeTimePerSession}"
|
|
|
|
IsVisible="{Binding TariffDescription.FreeTimePerSession, Converter={StaticResource Label_Converter}}"
|
|
|
|
Grid.Row="1"
|
|
|
|
Grid.Column="1"/>
|
2024-04-09 12:53:23 +02:00
|
|
|
<Label
|
2021-11-07 19:42:59 +01:00
|
|
|
Text="{x:Static resources:AppResources.MessageBikesManagementTariffDescriptionFeeEuroPerHour}"
|
|
|
|
IsVisible="{Binding TariffDescription.FeeEuroPerHour, Converter={StaticResource Label_Converter}}"
|
|
|
|
Grid.Row="2"/>
|
2024-04-09 12:53:23 +02:00
|
|
|
<Label
|
2021-11-07 19:42:59 +01:00
|
|
|
Text="{Binding TariffDescription.FeeEuroPerHour}"
|
|
|
|
IsVisible="{Binding TariffDescription.FeeEuroPerHour, Converter={StaticResource Label_Converter}}"
|
|
|
|
Grid.Row="2"
|
|
|
|
Grid.Column="1"/>
|
2024-04-09 12:53:23 +02:00
|
|
|
<Label
|
2021-11-07 19:42:59 +01:00
|
|
|
Text="{x:Static resources:AppResources.MessageBikesManagementTariffDescriptionMaxFeeEuroPerDay}"
|
|
|
|
IsVisible="{Binding TariffDescription.MaxFeeEuroPerDay, Converter={StaticResource Label_Converter}}"
|
|
|
|
Grid.Row="3"/>
|
2024-04-09 12:53:23 +02:00
|
|
|
<Label
|
2021-11-07 19:42:59 +01:00
|
|
|
Text="{Binding TariffDescription.MaxFeeEuroPerDay}"
|
|
|
|
IsVisible="{Binding TariffDescription.MaxFeeEuroPerDay, Converter={StaticResource Label_Converter}}"
|
|
|
|
Grid.Row="3"
|
|
|
|
Grid.Column="1"/>
|
2024-04-09 12:53:23 +02:00
|
|
|
<Label
|
2021-11-07 19:42:59 +01:00
|
|
|
Text="{x:Static resources:AppResources.MessageBikesManagementTariffDescriptionAboEuroPerMonth}"
|
|
|
|
IsVisible="{Binding TariffDescription.AboEuroPerMonth, Converter={StaticResource Label_Converter}}"
|
|
|
|
Grid.Row="4"/>
|
2024-04-09 12:53:23 +02:00
|
|
|
<Label
|
2021-11-07 19:42:59 +01:00
|
|
|
Text="{Binding TariffDescription.AboEuroPerMonth}"
|
|
|
|
IsVisible="{Binding TariffDescription.AboEuroPerMonth, Converter={StaticResource Label_Converter}}"
|
|
|
|
Grid.Row="4"
|
|
|
|
Grid.Column="1"/>
|
2024-04-09 12:53:23 +02:00
|
|
|
<Label
|
2022-01-04 18:54:03 +01:00
|
|
|
TextType="Html"
|
|
|
|
Text="{Binding TariffDescription.OperatorAgb}"
|
|
|
|
IsVisible="{Binding TariffDescription.OperatorAgb, Converter={StaticResource Label_Converter}}"
|
|
|
|
Grid.Row="5"
|
|
|
|
Grid.ColumnSpan="3"/>
|
2024-04-09 12:53:23 +02:00
|
|
|
</Grid>
|
|
|
|
</StackLayout>
|
|
|
|
</ContentView>
|
2023-11-21 15:26:57 +01:00
|
|
|
</ViewCell>
|