From a9a5e562f4fe0779f3d590c0dcd8877de3d0a9ee Mon Sep 17 00:00:00 2001 From: lobroda Date: Thu, 7 Sep 2023 11:03:50 +0100 Subject: [PATCH] ADD : Avancement View --- LivreLand/AppShell.xaml | 2 +- LivreLand/LivreLand.csproj | 4 +++- LivreLand/Model/BookModel.cs | 24 +++++++++++++++++++ LivreLand/Resources/Images/star_fill.svg | 4 ++++ LivreLand/Resources/Styles/Styles.xaml | 8 ++++++- LivreLand/View/BibliothequeView.xaml | 11 +++++---- LivreLand/View/BibliothequeView.xaml.cs | 17 ++++++++++++- .../View/ContentViews/HomeButtonView.xaml | 6 ++--- .../View/ContentViews/HomeButtonView.xaml.cs | 2 +- .../View/ContentViews/StarNotationView.xaml | 24 +++++++++++++++++++ .../ContentViews/StarNotationView.xaml.cs | 9 +++++++ LivreLand/View/DetailsLivreView.xaml | 4 +++- LivreLand/View/TousView.xaml | 12 ++++++---- LivreLand/View/TousView.xaml.cs | 10 ++++++++ 14 files changed, 118 insertions(+), 19 deletions(-) create mode 100644 LivreLand/Model/BookModel.cs create mode 100644 LivreLand/Resources/Images/star_fill.svg create mode 100644 LivreLand/View/ContentViews/StarNotationView.xaml create mode 100644 LivreLand/View/ContentViews/StarNotationView.xaml.cs diff --git a/LivreLand/AppShell.xaml b/LivreLand/AppShell.xaml index 993028e..7e841b2 100644 --- a/LivreLand/AppShell.xaml +++ b/LivreLand/AppShell.xaml @@ -20,7 +20,7 @@ ContentTemplate="{DataTemplate view:DetailsLivreView}" Icon="bookmark_fill"/> diff --git a/LivreLand/LivreLand.csproj b/LivreLand/LivreLand.csproj index f32cd11..6c3e7c7 100644 --- a/LivreLand/LivreLand.csproj +++ b/LivreLand/LivreLand.csproj @@ -53,7 +53,6 @@ - @@ -82,6 +81,9 @@ MSBuild:Compile + + MSBuild:Compile + MSBuild:Compile diff --git a/LivreLand/Model/BookModel.cs b/LivreLand/Model/BookModel.cs new file mode 100644 index 0000000..50b5a53 --- /dev/null +++ b/LivreLand/Model/BookModel.cs @@ -0,0 +1,24 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace LivreLand.Model +{ + public class BookModel + { + public string Title { get; private set; } + public string Author { get; private set; } + public string State { get; private set; } + public int Rating { get; private set; } + + public BookModel(string title, string author, string state, int rating) + { + Title = title; + Author = author; + State = state; + Rating = rating; + } + } +} diff --git a/LivreLand/Resources/Images/star_fill.svg b/LivreLand/Resources/Images/star_fill.svg new file mode 100644 index 0000000..ac2baa3 --- /dev/null +++ b/LivreLand/Resources/Images/star_fill.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/LivreLand/Resources/Styles/Styles.xaml b/LivreLand/Resources/Styles/Styles.xaml index d4d8f4f..843368e 100644 --- a/LivreLand/Resources/Styles/Styles.xaml +++ b/LivreLand/Resources/Styles/Styles.xaml @@ -181,7 +181,13 @@ - + + +