From 25445b6f1bb59a0cb951100daf759acb29d13743 Mon Sep 17 00:00:00 2001 From: Louis DUFOUR Date: Thu, 5 Oct 2023 21:21:31 +0200 Subject: [PATCH] Update (Back-end): Ajout de VM --- Sources/BookApp/AppShell.xaml | 4 +- Sources/BookApp/BookApp.csproj | 1 + .../BookApp/Composants/GroupCollection.xaml | 8 +-- .../Composants/GroupCollection.xaml.cs | 6 +- Sources/BookApp/MainPage.xaml | 14 ++-- Sources/BookApp/MainPage.xaml.cs | 50 ++------------ Sources/BookApp/MauiProgram.cs | 5 +- Sources/BookApp/Pages/DetailBook.xaml.cs | 2 +- Sources/BookApp/Pages/Tous.xaml.cs | 5 +- Sources/BookApp/ViewModel/ViewModelManager.cs | 32 --------- Sources/BookApp/ViewModel/ViewModelMenu.cs | 67 +++++++++++++++++++ .../BookApp/ViewModel/ViewModelNavigation.cs | 45 +++++++++++-- Sources/ToolKit/BaseViewModel.cs | 29 ++++++++ Sources/ToolKit/Class1.cs | 4 -- Sources/VMWrapper/BookViewModel.cs | 9 +-- 15 files changed, 164 insertions(+), 117 deletions(-) create mode 100644 Sources/BookApp/ViewModel/ViewModelMenu.cs create mode 100644 Sources/ToolKit/BaseViewModel.cs delete mode 100644 Sources/ToolKit/Class1.cs diff --git a/Sources/BookApp/AppShell.xaml b/Sources/BookApp/AppShell.xaml index 17d3960..8ea0eb9 100644 --- a/Sources/BookApp/AppShell.xaml +++ b/Sources/BookApp/AppShell.xaml @@ -19,11 +19,11 @@ - + - + diff --git a/Sources/BookApp/BookApp.csproj b/Sources/BookApp/BookApp.csproj index 088bf6f..f1d4c4b 100644 --- a/Sources/BookApp/BookApp.csproj +++ b/Sources/BookApp/BookApp.csproj @@ -76,6 +76,7 @@ + diff --git a/Sources/BookApp/Composants/GroupCollection.xaml b/Sources/BookApp/Composants/GroupCollection.xaml index bca8719..79bcd7d 100644 --- a/Sources/BookApp/Composants/GroupCollection.xaml +++ b/Sources/BookApp/Composants/GroupCollection.xaml @@ -43,21 +43,21 @@ -