diff --git a/sources/PocketBook/Resources/Fonts/San-Francisco/San Francisco/.DS_Store b/.DS_Store similarity index 92% rename from sources/PocketBook/Resources/Fonts/San-Francisco/San Francisco/.DS_Store rename to .DS_Store index 5064aae..5d1ff1d 100644 Binary files a/sources/PocketBook/Resources/Fonts/San-Francisco/San Francisco/.DS_Store and b/.DS_Store differ diff --git a/sources/.DS_Store b/sources/.DS_Store new file mode 100644 index 0000000..9666813 Binary files /dev/null and b/sources/.DS_Store differ diff --git a/sources/PocketBook/.DS_Store b/sources/PocketBook/.DS_Store new file mode 100644 index 0000000..5feef88 Binary files /dev/null and b/sources/PocketBook/.DS_Store differ diff --git a/sources/PocketBook/AppShell.xaml b/sources/PocketBook/AppShell.xaml index fcfd5ee..5fdbca2 100644 --- a/sources/PocketBook/AppShell.xaml +++ b/sources/PocketBook/AppShell.xaml @@ -1,4 +1,4 @@ - + - - - - + + + + diff --git a/sources/PocketBook/Auteur.xaml b/sources/PocketBook/Auteur.xaml index e449401..6a7c99b 100644 --- a/sources/PocketBook/Auteur.xaml +++ b/sources/PocketBook/Auteur.xaml @@ -1,14 +1,69 @@ - + - - - + Title="Auteur" + xmlns:local="clr-namespace:PocketBook" + xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sources/PocketBook/Auteur.xaml.cs b/sources/PocketBook/Auteur.xaml.cs index 093ca89..f1f5f82 100644 --- a/sources/PocketBook/Auteur.xaml.cs +++ b/sources/PocketBook/Auteur.xaml.cs @@ -6,4 +6,9 @@ public partial class Auteur : ContentPage { InitializeComponent(); } + + private async void RetourMainMenu(object sender, EventArgs e) + { + await Navigation.PopToRootAsync(); + } } \ No newline at end of file diff --git a/sources/PocketBook/BookChange.xaml b/sources/PocketBook/BookChange.xaml index aa7bd16..0759396 100644 --- a/sources/PocketBook/BookChange.xaml +++ b/sources/PocketBook/BookChange.xaml @@ -1,10 +1,10 @@ - + - + diff --git a/sources/PocketBook/BookDetail.xaml b/sources/PocketBook/BookDetail.xaml index ad293fb..b9971bd 100644 --- a/sources/PocketBook/BookDetail.xaml +++ b/sources/PocketBook/BookDetail.xaml @@ -1,19 +1,32 @@ - + + xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"> + - - + + + + + + + @@ -29,7 +42,7 @@ @@ -49,7 +62,7 @@ Curabitur tempus erat nec sapien aliquam venenatis. In ornare odio in lacus ornare finibus. Maecenas semper nulla non tortor gravida tincidunt ut ut arcu. Sed magna sem, semper quis justo vitae, lacinia laoreet ex. Curabitur at mauris a velit pharetra fringilla commodo non elit. Quisque sollicitudin, ipsum id dapibus consectetur, sapien tortor mattis lectus, vitae tempor nisl nisl sed ipsum. In in orci nec odio hendrerit posuere a vel libero." Margin="0,10,15,0"/> - + + diff --git a/sources/PocketBook/BookDetail.xaml.cs b/sources/PocketBook/BookDetail.xaml.cs index 5eca7c2..18d411a 100644 --- a/sources/PocketBook/BookDetail.xaml.cs +++ b/sources/PocketBook/BookDetail.xaml.cs @@ -2,23 +2,21 @@ namespace PocketBook; public partial class BookDetail : ContentPage { - public BookDetail(Book book) + public BookDetail() { - InitializeComponent(); - - ToolbarItem item = new ToolbarItem - { - Text = "Add item", - IconImageSource = ImageSource.FromFile("add.png") - }; - this.ToolbarItems.Add(item); - titreBook.Text = book.name; - bookAuteur.Text = book.auteur; + InitializeComponent(); + titreBook.Text = "La horde du contrevent"; + bookAuteur.Text = "Alain Damasio"; bookEdition.Text = "Fayard (2019)"; bookNbPages.Text = "700"; bookISBN.Text = "9854645645456"; - bookLangue.Text = "français"; - bookStatus.Text = book.type; - bookAdd.Text = "15 août 2013"; + bookLangue.Text = "français"; + bookStatus.Text = "Non lu"; + bookAdd.Text = "15 août 2013"; + } + + private async void RetourMainMenu(object sender, EventArgs e) + { + await Navigation.PopAsync(); } } \ No newline at end of file diff --git a/sources/PocketBook/ContentViewBook.xaml b/sources/PocketBook/ContentViewBook.xaml index 0666cfa..8241489 100644 --- a/sources/PocketBook/ContentViewBook.xaml +++ b/sources/PocketBook/ContentViewBook.xaml @@ -1,23 +1,43 @@ - + + x:Class="PocketBook.ContentViewBook" + xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"> - - - - diff --git a/sources/PocketBook/ContentViewFilter.xaml b/sources/PocketBook/ContentViewFilter.xaml index 7ba43b6..09c6896 100644 --- a/sources/PocketBook/ContentViewFilter.xaml +++ b/sources/PocketBook/ContentViewFilter.xaml @@ -1,4 +1,4 @@ - + @@ -7,7 +7,7 @@ diff --git a/sources/PocketBook/DatePublic.xaml b/sources/PocketBook/DatePublic.xaml new file mode 100644 index 0000000..c95d533 --- /dev/null +++ b/sources/PocketBook/DatePublic.xaml @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sources/PocketBook/DatePublic.xaml.cs b/sources/PocketBook/DatePublic.xaml.cs new file mode 100644 index 0000000..4fa6d98 --- /dev/null +++ b/sources/PocketBook/DatePublic.xaml.cs @@ -0,0 +1,14 @@ +namespace PocketBook; + +public partial class DatePublic : ContentPage +{ + public DatePublic() + { + InitializeComponent(); + } + + private async void RetourMainMenu(object sender, EventArgs e) + { + await Navigation.PopToRootAsync(); + } +} diff --git a/sources/PocketBook/Filtrage.xaml b/sources/PocketBook/Filtrage.xaml new file mode 100644 index 0000000..0dc4ce3 --- /dev/null +++ b/sources/PocketBook/Filtrage.xaml @@ -0,0 +1,18 @@ + + + + + + + + + + + + diff --git a/sources/PocketBook/Filtrage.xaml.cs b/sources/PocketBook/Filtrage.xaml.cs new file mode 100644 index 0000000..5bf4b25 --- /dev/null +++ b/sources/PocketBook/Filtrage.xaml.cs @@ -0,0 +1,33 @@ +namespace PocketBook; + +public partial class Filtrage : ContentView +{ + + public static readonly BindableProperty DatanameProperty = + BindableProperty.Create(nameof(Dataname), typeof(string), typeof(Filtrage), string.Empty); + + public static readonly BindableProperty NumberDataProperty = + BindableProperty.Create(nameof(NumberData), typeof(string), typeof(Filtrage), string.Empty); + + + public string Dataname + { + get { return (string)GetValue(DatanameProperty); } + set { SetValue(DatanameProperty, value); } + } + public string NumberData + { + get { return (string)GetValue(NumberDataProperty); } + set { SetValue(NumberDataProperty, value); } + } + + + + public Filtrage() + { + InitializeComponent(); + + dataname.SetBinding(Label.TextProperty, new Binding(nameof(Dataname), source: this)); + numberData.SetBinding(Label.TextProperty, new Binding(nameof(NumberData), source: this)); + } +} diff --git a/sources/PocketBook/MainPage.xaml b/sources/PocketBook/MainPage.xaml index a35e364..e207639 100644 --- a/sources/PocketBook/MainPage.xaml +++ b/sources/PocketBook/MainPage.xaml @@ -13,7 +13,7 @@