Very little modification on User class to merge it in a new branch
continuous-integration/drone/push Build is passing Details

pull/44/head
Roxane ROSSETTO 2 years ago
parent 7a15ac8b49
commit 367efb1499

@ -111,8 +111,15 @@ namespace Model
set=> priorities = value;
}
public bool Equals(User other)
public override bool Equals(object? obj)
{
if (obj == null) return false;
if (obj == this) return true;
return Equals(obj);
}
public bool Equals(User? other)
{
if (other == null ) return false;
return Name.Equals(other.Name) && Surname.Equals(other.Surname) && Mail.Equals(other.Mail);
}

@ -31,7 +31,7 @@ namespace Views
/* - Comment(ctrl-k + ctrl-c)/Uncomment(ctrl-k + ctrl-u) to change page - */
UserAppTheme = AppTheme.Light;
MainPage = new RecipeReviews();
MainPage = new MyProfil();
//MainPage = new MyPosts();
}
}

@ -2,6 +2,7 @@
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:Views"
xmlns:model="clr-namespace:Model;assembly=Model"
x:Class="Views.MyProfil"
Title="MyProfil">
@ -23,7 +24,7 @@
<local:ContainerBase.MyContent>
<ScrollView>
<StackLayout>
<StackLayout BindingContext="User"><!--Attention debut de binding-->
<Label Text="Mon profil" TextColor="{AppThemeBinding Light={StaticResource Black}, Dark={StaticResource Gray100}}"
FontAttributes="Bold"
FontSize="24" Padding="15, 15, 20, 5"/>

@ -56,6 +56,10 @@
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="7.0.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Model\Model.csproj" />
</ItemGroup>
<ItemGroup>
<MauiXaml Update="ContainerBase.xaml">
<Generator>MSBuild:Compile</Generator>

Loading…
Cancel
Save