@ -1,4 +1,5 @@
using CanYouBuildIt.Model;
using Microsoft.Maui.Controls;
using System.Diagnostics;
namespace CanYouBuildIt;
@ -13,7 +14,6 @@ public partial class App : Application
manager.sauvegardeDonnee();
Debug.WriteLine(manager.listUtil[0]);
InitializeComponent();
MainPage = new AppShell();
}
@ -58,6 +58,7 @@
<Grid.RowDefinitions>
<RowDefinition />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
@ -97,7 +98,7 @@
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
<Label Text="{Binding listUtil[0].username}"/>
<Button BackgroundColor="DimGrey"
@ -107,7 +108,7 @@
Text="Quitter"
TextColor="Snow"
x:Name="Quit"/>
Clicked="NavCreds"
Grid.Row="1" Grid.Column="6"
@ -115,18 +116,16 @@
Text="Credits"
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"/>
<Label Text="WARNING ! Vous devez vous connecter pour acceder au favoris."
BackgroundColor="Red"
Margin="0,-125"
</VerticalStackLayout>
</ContentPage>
@ -38,7 +38,7 @@ public partial class Acceuil : ContentPage
else
{
aConnecter.IsVisible = true;
await Task.Delay(1000);
await Task.Delay(3000);
aConnecter.IsVisible = false;