diff --git a/Sources/Data/PersLinqToPgSQL.cs b/Sources/Data/PersLinqToPgSQL.cs index 2927b13..6faea87 100644 --- a/Sources/Data/PersLinqToPgSQL.cs +++ b/Sources/Data/PersLinqToPgSQL.cs @@ -19,7 +19,7 @@ namespace LinqToPgSQL public class PersLinqToPgSQL : IPersistanceManager { private Hash hash = new Hash(); - string connexionBDD = String.Format("Server=90.114.135.116; Username=postgres; Database=conseco; Port=5432; Password=lulu; SSLMode=Prefer"); + string connexionBDD = String.Format("Server=2.3.8.130; Username=postgres; Database=conseco; Port=5432; Password=lulu; SSLMode=Prefer"); public string LoadInscrit(string id, string mdp) { diff --git a/Sources/IHM/AppShellDesktop.xaml b/Sources/IHM/AppShellDesktop.xaml index a84f38e..96abad7 100644 --- a/Sources/IHM/AppShellDesktop.xaml +++ b/Sources/IHM/AppShellDesktop.xaml @@ -8,7 +8,7 @@ Shell.NavBarIsVisible="False"> diff --git a/Sources/IHM/AppShellDesktop.xaml.cs b/Sources/IHM/AppShellDesktop.xaml.cs index 5193cab..6775d2f 100644 --- a/Sources/IHM/AppShellDesktop.xaml.cs +++ b/Sources/IHM/AppShellDesktop.xaml.cs @@ -1,5 +1,9 @@ using IHM.Desktop; +using IHM.Mobile; using Model; +using ChangePassword = IHM.Desktop.ChangePassword; +using Compte = IHM.Desktop.Compte; +using ForgetPassword = IHM.Desktop.ForgetPassword; namespace IHM { @@ -10,10 +14,11 @@ namespace IHM public AppShellDesktop() { InitializeComponent(); + Routing.RegisterRoute("ForgetPassword", typeof(ForgetPassword)); + Routing.RegisterRoute("ChangePassword", typeof(ChangePassword)); + Routing.RegisterRoute("Compte", typeof(Compte)); + } - - - } } \ No newline at end of file diff --git a/Sources/IHM/Desktop/CV_AddPlanification.xaml b/Sources/IHM/Desktop/CV_AddPlanification.xaml new file mode 100644 index 0000000..7c988d8 --- /dev/null +++ b/Sources/IHM/Desktop/CV_AddPlanification.xaml @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Sources/IHM/Desktop/CV_Planification.xaml.cs b/Sources/IHM/Desktop/CV_Planification.xaml.cs new file mode 100644 index 0000000..890d95c --- /dev/null +++ b/Sources/IHM/Desktop/CV_Planification.xaml.cs @@ -0,0 +1,26 @@ +using Microsoft.Maui.Controls.Internals; +using Model; + +namespace IHM.Desktop; + +public partial class CV_Planification : ContentView +{ + public Manager Mgr => (App.Current as App).Manager; + public CV_Planification() + { + InitializeComponent(); + + + + } + + private void Button_Clicked(object sender, EventArgs e) + { + windowAjout.Content = new CV_AddPlanification(); + } + + private void Button_Clicked_1(object sender, EventArgs e) + { + + } +} \ No newline at end of file diff --git a/Sources/IHM/Desktop/ChangePassword.xaml b/Sources/IHM/Desktop/ChangePassword.xaml new file mode 100644 index 0000000..1c94806 --- /dev/null +++ b/Sources/IHM/Desktop/ChangePassword.xaml @@ -0,0 +1,35 @@ + + + + \ No newline at end of file diff --git a/Sources/IHM/Desktop/Dashboard.xaml.cs b/Sources/IHM/Desktop/Dashboard.xaml.cs new file mode 100644 index 0000000..edcacd6 --- /dev/null +++ b/Sources/IHM/Desktop/Dashboard.xaml.cs @@ -0,0 +1,59 @@ +using Microsoft.Maui.Graphics.Text; + +namespace IHM.Desktop; + +public partial class Dashboard +{ + + public Dashboard() + { + InitializeComponent(); + } + + private void RetourFormeBase() + { + ButPla.BackgroundColor = Colors.Yellow; ButPla.TextColor = Colors.Black; + ButEch.BackgroundColor = Colors.Yellow; ButEch.TextColor = Colors.Black; + ButOpe.BackgroundColor = Colors.Yellow; ButOpe.TextColor = Colors.Black; + ButCom.BackgroundColor = Colors.Yellow; ButCom.TextColor = Colors.Black; + ButAcc.BackgroundColor = Colors.Yellow; ButAcc.TextColor = Colors.Black; + ButSta.BackgroundColor = Colors.Yellow; ButSta.TextColor = Colors.Black; + } + + private void Button_planification(object sender, EventArgs e) + { + RetourFormeBase(); + ButPla.TextColor = Colors.White; + ButPla.BackgroundColor = Colors.Red; + mainCV.Content= new CV_Planification(); + } + + private void Button_echeancier(object sender, EventArgs e) + { + RetourFormeBase(); + ButEch.TextColor = Colors.White; + ButEch.BackgroundColor = Colors.Red; + mainCV.Content = new Echeancier(); + } + + private void Button_operation(object sender, EventArgs e) + { + RetourFormeBase(); + ButOpe.TextColor = Colors.White; + ButOpe.BackgroundColor = Colors.Red; + mainCV.Content = new Operations(); + } + + private void Button_compte(object sender, EventArgs e) + { + RetourFormeBase(); + ButCom.TextColor = Colors.White; + ButCom.BackgroundColor = Colors.Red; + mainCV.Content = new Compte(); + } + + private void Button_Clicked(object sender, EventArgs e) + { + + } +} \ No newline at end of file diff --git a/Sources/IHM/Desktop/Echeancier.xaml b/Sources/IHM/Desktop/Echeancier.xaml new file mode 100644 index 0000000..d942914 --- /dev/null +++ b/Sources/IHM/Desktop/Echeancier.xaml @@ -0,0 +1,45 @@ + + + + + +