Compare commits

..

No commits in common. "72da8b3a202f0118dd1743cd37984b236844d9d4" and "e67bba0a2a78259137bb60dc7eabf8293a099b8b" have entirely different histories.

View File

@ -10,126 +10,89 @@
<StackLayout> <StackLayout>
<StackLayout> <StackLayout>
<StackLayout Padding="20" Orientation="Vertical"> <StackLayout Padding="20" Orientation="Horizontal">
<StackLayout Padding="20" Orientation="Horizontal">
<BoxView HeightRequest="5" Color="MediumPurple"/> <BoxView HeightRequest="5" Color="MediumPurple"/>
<Label Text="Arrivée(s)" <Label Text="Arrivée(s)"
FontSize="24" FontSize="24"
FontAttributes="Bold" FontAttributes="Bold"
HorizontalOptions="Center"/> HorizontalOptions="Center"/>
</StackLayout>
</StackLayout>
<ListView x:Name="GestionArriveListView" HasUnevenRows="True"> <ListView x:Name="GestionArriveListView" HasUnevenRows="True">
<ListView.ItemTemplate> <ListView.ItemTemplate>
<DataTemplate> <DataTemplate>
<ViewCell> <ViewCell>
<StackLayout Orientation="Vertical" Padding="5" HorizontalOptions="FillAndExpand"> <StackLayout>
<!-- Première ligne : ID chambre et Nombre de personnes --> <Label Text="ID chambre :"
<StackLayout Orientation="Horizontal" Padding="5" HorizontalOptions="FillAndExpand"> VerticalOptions="Center"
<Label Text="ID chambre :" WidthRequest="50"/>
VerticalOptions="Center" <Label Text="{Binding ChambreId}"
WidthRequest="120"/> VerticalOptions="Center"
<Label Text="{Binding ChambreId}" WidthRequest="50"/>
VerticalOptions="Center" <Label Text="Nombres de personnes :"
WidthRequest="50"/> VerticalOptions="Center"
WidthRequest="50"/>
<Label Text="Nombres de personnes :" <Label Text="{Binding NbPersonnes}"
VerticalOptions="Center" VerticalOptions="Center"
WidthRequest="160"/> WidthRequest="50"/>
<Label Text="{Binding NbPersonnes}" <Label Text="Date d'arrivée : aujourd'hui"
VerticalOptions="Center" VerticalOptions="Center"
WidthRequest="50"/> WidthRequest="100"/>
</StackLayout> <Label Text="Date de départ :"
VerticalOptions="Center"
<!-- Deuxième ligne : Date d'arrivée --> WidthRequest="100"/>
<StackLayout Orientation="Horizontal" Padding="5" HorizontalOptions="FillAndExpand"> <Label Text="{Binding DateFin, StringFormat='{0:dd/MM/yyyy}'}"
<Label Text="Date d'arrivée :" VerticalOptions="Center"
VerticalOptions="Center" WidthRequest="100"/>
WidthRequest="150"/>
<Label Text="{Binding DateDebut, StringFormat='{0:dd/MM/yyyy}'}"
VerticalOptions="Center"
WidthRequest="100"/>
</StackLayout>
<!-- Troisième ligne : Date de départ -->
<StackLayout Orientation="Horizontal" Padding="5" HorizontalOptions="FillAndExpand">
<Label Text="Date de départ :"
VerticalOptions="Center"
WidthRequest="150"/>
<Label Text="Aujourd'hui"
VerticalOptions="Center"
WidthRequest="100"/>
</StackLayout>
</StackLayout> </StackLayout>
</ViewCell> </ViewCell>
</DataTemplate> </DataTemplate>
</ListView.ItemTemplate> </ListView.ItemTemplate>
</ListView> </ListView>
</StackLayout> </StackLayout>
</StackLayout>
<StackLayout Padding="20" Orientation="Vertical"> <StackLayout>
<StackLayout Padding="20" Orientation="Horizontal"> <StackLayout Padding="20" Orientation="Horizontal">
<BoxView HeightRequest="5" Color="MediumPurple"/>
<Label Text="Départ(s)" <BoxView HeightRequest="5" Color="MediumPurple"/>
FontSize="24" <Label Text="Départ(s)"
FontAttributes="Bold" FontSize="24"
HorizontalOptions="Center" /> FontAttributes="Bold"
</StackLayout> HorizontalOptions="Center" />
<ListView x:Name="GestionDepartListView" HasUnevenRows="True"> </StackLayout>
<ListView.ItemTemplate> <ListView x:Name="GestionDepartListView" HasUnevenRows="True">
<DataTemplate> <ListView.ItemTemplate>
<ViewCell> <DataTemplate>
<!-- StackLayout principal avec orientation verticale --> <ViewCell>
<StackLayout Orientation="Vertical" Padding="5" HorizontalOptions="FillAndExpand"> <StackLayout>
<!-- Première ligne : ID chambre et Nombre de personnes --> <Label Text="ID chambre :"
<StackLayout Orientation="Horizontal" Padding="5" HorizontalOptions="FillAndExpand"> VerticalOptions="Center"
<Label Text="ID chambre :" WidthRequest="50"/>
VerticalOptions="Center" <Label Text="{Binding ChambreId}"
WidthRequest="120"/> VerticalOptions="Center"
<Label Text="{Binding ChambreId}" WidthRequest="50"/>
VerticalOptions="Center" <Label Text="Nombres de personnes :"
WidthRequest="50"/> VerticalOptions="Center"
WidthRequest="50"/>
<Label Text="Nombres de personnes :" <Label Text="{Binding NbPersonnes}"
VerticalOptions="Center" VerticalOptions="Center"
WidthRequest="160"/> WidthRequest="50"/>
<Label Text="{Binding NbPersonnes}" <Label Text="Date d'arrivée :"
VerticalOptions="Center" VerticalOptions="Center"
WidthRequest="50"/> WidthRequest="100"/>
</StackLayout> <Label Text="{Binding DateDebut, StringFormat='{0:dd/MM/yyyy}'}"
<!-- Deuxième ligne : Date d'arrivée -->
<StackLayout Orientation="Horizontal" Padding="5" HorizontalOptions="FillAndExpand">
<Label Text="Date d'arrivée :"
VerticalOptions="Center"
WidthRequest="150"/>
<Label Text="{Binding DateDebut, StringFormat='{0:dd/MM/yyyy}'}"
VerticalOptions="Center"
WidthRequest="100"/>
</StackLayout>
<!-- Troisième ligne : Date de départ -->
<StackLayout Orientation="Horizontal" Padding="5" HorizontalOptions="FillAndExpand">
<Label Text="Date de départ :"
VerticalOptions="Center"
WidthRequest="150"/>
<Label Text="Aujourd'hui"
VerticalOptions="Center" VerticalOptions="Center"
WidthRequest="100"/> WidthRequest="100"/>
</StackLayout> <Label Text="Date de départ : aujourd'hui"
VerticalOptions="Center"
</StackLayout> WidthRequest="100"/>
</ViewCell> </StackLayout>
</DataTemplate> </ViewCell>
</ListView.ItemTemplate> </DataTemplate>
</ListView> </ListView.ItemTemplate>
</StackLayout> </ListView>
</StackLayout>
</StackLayout> </StackLayout>
</ContentPage.Content> </ContentPage.Content>