pull/9/head
Clement LESME 2 years ago
parent 0d9c263dec
commit 18aba0fa22

@ -1,4 +1,5 @@
using CanYouBuildIt.Model; using CanYouBuildIt.Model;
using Microsoft.Maui.Controls;
using System.Diagnostics; using System.Diagnostics;
namespace CanYouBuildIt; namespace CanYouBuildIt;
@ -13,7 +14,6 @@ public partial class App : Application
manager.sauvegardeDonnee(); manager.sauvegardeDonnee();
Debug.WriteLine(manager.listUtil[0]); Debug.WriteLine(manager.listUtil[0]);
InitializeComponent(); InitializeComponent();
MainPage = new AppShell();
MainPage = new AppShell();
} }
} }

@ -58,6 +58,7 @@
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition /> <RowDefinition />
<RowDefinition /> <RowDefinition />
<RowDefinition />
</Grid.RowDefinitions> </Grid.RowDefinitions>
<Grid.ColumnDefinitions> <Grid.ColumnDefinitions>
@ -97,7 +98,7 @@
</DataTemplate> </DataTemplate>
</ListView.ItemTemplate> </ListView.ItemTemplate>
</ListView> </ListView>
<Label Text="{Binding listUtil[0].username}"/> <Label Text="{Binding listUtil[0].username}"/>
<Button BackgroundColor="DimGrey" <Button BackgroundColor="DimGrey"
@ -107,7 +108,7 @@
Text="Quitter" Text="Quitter"
TextColor="Snow" TextColor="Snow"
x:Name="Quit"/> x:Name="Quit"/>
<Button BackgroundColor="DimGrey" <Button BackgroundColor="DimGrey"
Clicked="NavCreds" Clicked="NavCreds"
Grid.Row="1" Grid.Column="6" Grid.Row="1" Grid.Column="6"
@ -115,18 +116,16 @@
Text="Credits" Text="Credits"
TextColor="Snow" TextColor="Snow"
x:Name="Creds"/> x:Name="Creds"/>
</Grid>
<Label Text="Vous devez vous connecter pour acceder au favoris."
IsVisible="false"
x:Name="aConnecter"
BackgroundColor="Green"
FontAttributes="Bold"
Padding="30"
Margin="0,30,0,0"
HorizontalOptions="Center"
WidthRequest="500"/>
</Grid>
<Label Text="WARNING ! Vous devez vous connecter pour acceder au favoris."
IsVisible="false"
x:Name="aConnecter"
BackgroundColor="Red"
FontAttributes="Bold"
Margin="0,-125"
HorizontalOptions="Center"
WidthRequest="500"/>
</VerticalStackLayout> </VerticalStackLayout>
</ContentPage> </ContentPage>

@ -38,7 +38,7 @@ public partial class Acceuil : ContentPage
else else
{ {
aConnecter.IsVisible = true; aConnecter.IsVisible = true;
await Task.Delay(1000); await Task.Delay(3000);
aConnecter.IsVisible = false; aConnecter.IsVisible = false;
} }
} }

Loading…
Cancel
Save