From 5c9c0e67fb560475c5f4c394aac749dc597b4651 Mon Sep 17 00:00:00 2001 From: lobroda Date: Tue, 17 Oct 2023 12:14:13 +0100 Subject: [PATCH] ADD : Loan & Borrowing selection fonctionnel (ALirePlusTard Book Details ToDo) --- LivreLand/AppShell.xaml.cs | 1 + LivreLand/LivreLand.csproj | 3 ++ LivreLand/View/ALirePlusTardView.xaml | 4 +- LivreLand/View/ALirePlusTardView.xaml.cs | 5 --- LivreLand/View/AddBookView.xaml | 12 ++++++ LivreLand/View/AddBookView.xaml.cs | 9 ++++ .../ContentViews/PopupHomePlusButtonView.xaml | 4 ++ LivreLand/View/DetailsLivreView.xaml | 28 ++++++------- LivreLand/View/EmpruntsPretsView.xaml | 8 +++- LivreLand/View/EmpruntsPretsView.xaml.cs | 5 --- LivreLand/View/StatutLectureView.xaml | 4 +- LivreLand/View/StatutLectureView.xaml.cs | 5 --- LivreLand/ViewModel/ALirePlusTardVM.cs | 20 ++++++++- LivreLand/ViewModel/DetailsLivreVM.cs | 8 ++++ LivreLand/ViewModel/EmpruntsPretsVM.cs | 42 ++++++++++++++++++- LivreLand/ViewModel/StatutLectureVM.cs | 20 ++++++++- LivreLand/ViewModel/TousVM.cs | 1 + ViewModels/BookVM.cs | 6 +++ ViewModels/ManagerVM.cs | 37 ++++++++++++++++ 19 files changed, 186 insertions(+), 36 deletions(-) create mode 100644 LivreLand/View/AddBookView.xaml create mode 100644 LivreLand/View/AddBookView.xaml.cs diff --git a/LivreLand/AppShell.xaml.cs b/LivreLand/AppShell.xaml.cs index 3a9374d..363e8d7 100644 --- a/LivreLand/AppShell.xaml.cs +++ b/LivreLand/AppShell.xaml.cs @@ -16,6 +16,7 @@ public partial class AppShell : Shell Routing.RegisterRoute("library/note/", typeof(FiltrageNoteView)); Routing.RegisterRoute("library/contacts/", typeof(ContactsView)); Routing.RegisterRoute("library/tous/details/", typeof(DetailsLivreView)); + Routing.RegisterRoute("library/add/", typeof(AddBookView)); InitializeComponent(); } } diff --git a/LivreLand/LivreLand.csproj b/LivreLand/LivreLand.csproj index 47c0609..e044fb1 100644 --- a/LivreLand/LivreLand.csproj +++ b/LivreLand/LivreLand.csproj @@ -65,6 +65,9 @@ + + MSBuild:Compile + MSBuild:Compile diff --git a/LivreLand/View/ALirePlusTardView.xaml b/LivreLand/View/ALirePlusTardView.xaml index dbfe0b9..3479dfe 100644 --- a/LivreLand/View/ALirePlusTardView.xaml +++ b/LivreLand/View/ALirePlusTardView.xaml @@ -42,8 +42,10 @@ Grid.Column="1"/> diff --git a/LivreLand/View/ALirePlusTardView.xaml.cs b/LivreLand/View/ALirePlusTardView.xaml.cs index 3d54260..e7f43e7 100644 --- a/LivreLand/View/ALirePlusTardView.xaml.cs +++ b/LivreLand/View/ALirePlusTardView.xaml.cs @@ -24,11 +24,6 @@ public partial class ALirePlusTardView : ContentPage #region Methods - void OnSelectionChanged(object sender, SelectionChangedEventArgs e) - { - //App.Current.MainPage.Navigation.PushAsync(new DetailsLivreView()); - } - protected override void OnAppearing() { base.OnAppearing(); diff --git a/LivreLand/View/AddBookView.xaml b/LivreLand/View/AddBookView.xaml new file mode 100644 index 0000000..fa59fda --- /dev/null +++ b/LivreLand/View/AddBookView.xaml @@ -0,0 +1,12 @@ + + + + + \ No newline at end of file diff --git a/LivreLand/View/AddBookView.xaml.cs b/LivreLand/View/AddBookView.xaml.cs new file mode 100644 index 0000000..e08baaa --- /dev/null +++ b/LivreLand/View/AddBookView.xaml.cs @@ -0,0 +1,9 @@ +namespace LivreLand.View; + +public partial class AddBookView : ContentPage +{ + public AddBookView() + { + InitializeComponent(); + } +} \ No newline at end of file diff --git a/LivreLand/View/ContentViews/PopupHomePlusButtonView.xaml b/LivreLand/View/ContentViews/PopupHomePlusButtonView.xaml index 0c99d19..8185e04 100644 --- a/LivreLand/View/ContentViews/PopupHomePlusButtonView.xaml +++ b/LivreLand/View/ContentViews/PopupHomePlusButtonView.xaml @@ -26,6 +26,10 @@ Margin="10,5,10,5">