From dccbbbf8a0831d100a9b208e5d5c33fc40892ca7 Mon Sep 17 00:00:00 2001 From: lobroda Date: Thu, 12 Oct 2023 12:56:53 +0100 Subject: [PATCH] ADD : Avancement Prets & Emprunts (bug switch button) --- LivreLand/MauiProgram.cs | 7 +- LivreLand/View/ALirePlusTardView.xaml.cs | 2 +- .../ContentViews/EmpruntsPretsButtonView.xaml | 21 +-- .../EmpruntsPretsButtonView.xaml.cs | 87 +++++++----- LivreLand/View/EmpruntsPretsView.xaml | 74 ++++------ LivreLand/View/EmpruntsPretsView.xaml.cs | 34 +++-- LivreLand/View/TousView.xaml | 47 +++---- LivreLand/ViewModel/EmpruntsPretsVM.cs | 129 ++++++++++++++++++ ViewModels/BorrowingVM.cs | 58 ++++++++ ViewModels/ContactVM.cs | 48 +++++++ ViewModels/LoanVM.cs | 58 ++++++++ ViewModels/ManagerVM.cs | 85 ++++++++++++ 12 files changed, 511 insertions(+), 139 deletions(-) create mode 100644 LivreLand/ViewModel/EmpruntsPretsVM.cs create mode 100644 ViewModels/BorrowingVM.cs create mode 100644 ViewModels/ContactVM.cs create mode 100644 ViewModels/LoanVM.cs diff --git a/LivreLand/MauiProgram.cs b/LivreLand/MauiProgram.cs index 0b29492..bf7df67 100644 --- a/LivreLand/MauiProgram.cs +++ b/LivreLand/MauiProgram.cs @@ -1,5 +1,6 @@ using CommunityToolkit.Maui; using LivreLand.View; +using LivreLand.View.ContentViews; using LivreLand.ViewModel; using Microsoft.Extensions.Logging; using Model; @@ -30,8 +31,9 @@ public static class MauiProgram .AddSingleton() .AddSingleton() .AddSingleton() + .AddSingleton() - .AddSingleton() + .AddSingleton() .AddSingleton() .AddSingleton() @@ -45,7 +47,8 @@ public static class MauiProgram .AddSingleton() .AddSingleton() .AddSingleton() - .AddSingleton(); + .AddSingleton() + .AddSingleton(); #if DEBUG builder.Logging.AddDebug(); diff --git a/LivreLand/View/ALirePlusTardView.xaml.cs b/LivreLand/View/ALirePlusTardView.xaml.cs index 96b1296..3d54260 100644 --- a/LivreLand/View/ALirePlusTardView.xaml.cs +++ b/LivreLand/View/ALirePlusTardView.xaml.cs @@ -22,7 +22,7 @@ public partial class ALirePlusTardView : ContentPage #endregion - #region Properties + #region Methods void OnSelectionChanged(object sender, SelectionChangedEventArgs e) { diff --git a/LivreLand/View/ContentViews/EmpruntsPretsButtonView.xaml b/LivreLand/View/ContentViews/EmpruntsPretsButtonView.xaml index 198507b..2b63906 100644 --- a/LivreLand/View/ContentViews/EmpruntsPretsButtonView.xaml +++ b/LivreLand/View/ContentViews/EmpruntsPretsButtonView.xaml @@ -1,9 +1,10 @@ + x:Class="LivreLand.View.ContentViews.EmpruntsPretsButtonView" + x:Name="this"> - + @@ -17,18 +18,18 @@ -