Ajout de la Date de Création du compte et affichage sur le profil

pull/57/head
Rémi LAVERGNE 2 years ago
parent c19fcfd08e
commit 0eb9a844b0

@ -18,6 +18,8 @@ namespace GameAtlas.Models
[DataMember]
public string Mdp { get; private set; }
[DataMember]
public string DateCreation { get; private set; }
[DataMember]
public List<Jeu> ListePossedes { get; private set; }
[DataMember]
public List<Jeu> ListeFavoris { get; private set; }
@ -27,6 +29,7 @@ namespace GameAtlas.Models
Mail = mail;
Pseudo = pseudo;
Mdp = mdp;
DateCreation = "Compte créer le "+DateTime.Today.ToString("d");
ListePossedes = new List<Jeu>();
ListeFavoris = new List<Jeu>();
}

@ -33,7 +33,7 @@
<VerticalStackLayout Grid.Column="1" VerticalOptions="Center" Spacing="3">
<Label Text="{Binding ConnectedUser.Pseudo}" FontSize="20" FontFamily="AladinRegular" TextColor="{StaticResource Black}"/>
<Label Text="Compte créé le 13/01/2023" FontSize="12" FontFamily="RobotoRegular" TextColor="{StaticResource Black}"/>
<Label Text="{Binding ConnectedUser.DateCreation}" FontSize="12" FontFamily="RobotoRegular" TextColor="{StaticResource Black}"/>
</VerticalStackLayout>
<Grid Grid.Row="0" Grid.Column="2" RowDefinitions="50" ColumnDefinitions="50" HorizontalOptions="Start">

Loading…
Cancel
Save