diff --git a/Sources/IHM/App.xaml.cs b/Sources/IHM/App.xaml.cs
index 58578b3..9f6cb75 100644
--- a/Sources/IHM/App.xaml.cs
+++ b/Sources/IHM/App.xaml.cs
@@ -12,7 +12,10 @@ namespace IHM
MainPage = new AppShell();
-
+ if(OperatingSystem.IsWindows())
+ {
+ MainPage = new UI_Windows.MainPage_Windows();
+ }
}
diff --git a/Sources/IHM/AppShell.xaml.cs b/Sources/IHM/AppShell.xaml.cs
index d4af711..4c9338a 100644
--- a/Sources/IHM/AppShell.xaml.cs
+++ b/Sources/IHM/AppShell.xaml.cs
@@ -14,6 +14,8 @@ namespace IHM
Routing.RegisterRoute("ForgetPassword", typeof(ForgetPassword));
Routing.RegisterRoute("ChangePassword", typeof(ChangePassword));
}
+
+
}
diff --git a/Sources/IHM/ChangePassword.xaml b/Sources/IHM/ChangePassword.xaml
deleted file mode 100644
index 673404d..0000000
--- a/Sources/IHM/ChangePassword.xaml
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Sources/IHM/ChangePassword.xaml.cs b/Sources/IHM/ChangePassword.xaml.cs
deleted file mode 100644
index 5f31f93..0000000
--- a/Sources/IHM/ChangePassword.xaml.cs
+++ /dev/null
@@ -1,45 +0,0 @@
-using Model;
-
-namespace IHM;
-
-public partial class ChangePassword : ContentPage
-{
- public Manager Mgr => (App.Current as App).Manager;
- private string MailUser;
- public ChangePassword(string mailUser)
- {
- InitializeComponent();
- MailUser = mailUser;
- }
-
- private void ValidationButton_Clicked(object sender, EventArgs e)
- {
- if (EntryNewMdp.Text == null || EntryNewMdpConfirmation.Text == null)
- {
- AffichError("Champ non valide", "Veuillez remplir tout les champs", "OK");
- }
- else {
- if (!EntryNewMdp.Text.Equals(EntryNewMdpConfirmation.Text))
- {
- AffichError("mot de passe non identique", "veuillez entrer des mots de passe identique", "OK");
- }
- else
- {
- Mgr.changePasswordBdd(MailUser, EntryNewMdp.Text);
- AffichError("mdp changé", "mot de passe bien changé", "ok");
- NavigateTo("../..");
- }
- }
- }
-
- private async void NavigateTo(string path)
- {
- await Shell.Current.GoToAsync(path);
- }
-
-
- private async void AffichError(string s, string s1, string s2)
- {
- await DisplayAlert(s, s1, s2);
- }
-}
\ No newline at end of file
diff --git a/Sources/IHM/Dashboard.xaml.cs b/Sources/IHM/Dashboard.xaml.cs
deleted file mode 100644
index dabbff7..0000000
--- a/Sources/IHM/Dashboard.xaml.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-using Model;
-
-namespace IHM;
-
-public partial class DashBoard : ContentPage
-{
- public Manager Mgr => (App.Current as App).Manager;
- public DashBoard()
- {
- InitializeComponent();
- //Routing.RegisterRoute(nameof(DashBoard), typeof(DashBoard));
-
-
- if (Mgr.SelectedInscrit == null)
- {
- loadInscription();
- }
-
-
-
- }
-
- public async void loadInscription()
- {
- await Navigation.PushModalAsync(new MainPage());
- }
-}
\ No newline at end of file
diff --git a/Sources/IHM/ForgetPassword.xaml b/Sources/IHM/ForgetPassword.xaml
deleted file mode 100644
index 92c34bb..0000000
--- a/Sources/IHM/ForgetPassword.xaml
+++ /dev/null
@@ -1,50 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Sources/IHM/IHM.csproj b/Sources/IHM/IHM.csproj
index 9ef10c6..f515366 100644
--- a/Sources/IHM/IHM.csproj
+++ b/Sources/IHM/IHM.csproj
@@ -91,6 +91,9 @@
MSBuild:Compile
+
+ MSBuild:Compile
+
diff --git a/Sources/IHM/Inscription.xaml b/Sources/IHM/Inscription.xaml
deleted file mode 100644
index 26f4cea..0000000
--- a/Sources/IHM/Inscription.xaml
+++ /dev/null
@@ -1,86 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Sources/IHM/Inscription.xaml.cs b/Sources/IHM/Inscription.xaml.cs
deleted file mode 100644
index bc88336..0000000
--- a/Sources/IHM/Inscription.xaml.cs
+++ /dev/null
@@ -1,73 +0,0 @@
-using Model;
-using Email = Model.Email;
-
-namespace IHM;
-
-public partial class Inscription : ContentPage
-{
- private string code;
- public Manager Mgr => (App.Current as App).Manager;
- public Inscription()
- {
- InitializeComponent();
- }
- public void InscriptionOnClicked(object sender, EventArgs e)
- {
- if (EntryNewName.Text == null || EntryNewMail.Text == null || EntryConfirmationPassword.Text == null || EntryNewPassword.Text == null ||
- EntryNewSurname.Text == null)
- {
- AffichError("Champ invalide", "Veuillez compléter tout les champs", "OK");
- }
- else
- {
- if(EntryNewPassword.Text.Equals(EntryConfirmationPassword.Text)) {
- if (Mgr.existEmail(EntryNewMail.Text))
- {
- AffichError("Mail existant", "un compte porte déjà cette adresse mail, veuillez en changer", "OK");
- }
- else
- {
- try
- {
- Random generator = new Random();
- code = generator.Next(0, 1000000).ToString("D6");
- Email.CreateMail(EntryNewMail.Text, code);
- ValidateReceptCode.IsVisible = true;
- }
- catch (Exception ex)
- {
- AffichError("Information invalide", ex.Message, "OK");
- }
- }
- }
- else
- {
- AffichError("Mot de passe de confirmation invalide", "Veuillez mettre deux mots de passe identiques", "OK");
- }
- }
- }
- private void ValideCode(object sender, EventArgs e)
- {
- if (EntryCodeRecept.Text == code)
- {
- Inscrit inscrit = new Inscrit(Mgr.lastInscrit() + 1, EntryNewName.Text, EntryNewMail.Text, EntryNewSurname.Text, EntryNewPassword.Text);
- Mgr.createInscrit(inscrit);
- AffichError("compte créé", "Compte bien créé", "OK");
- NavigateTo("..");
- }
- else
- {
- AffichError("Code non identique", "Veuillez entrer le même code que celui reçu par mail", "OK");
- }
- }
-
- private async void AffichError(string s, string s1, string s2)
- {
- await DisplayAlert(s, s1, s2);
- }
-
- private async void NavigateTo(string s)
- {
- await Shell.Current.GoToAsync(s);
- }
-}
\ No newline at end of file
diff --git a/Sources/IHM/Operations.xaml b/Sources/IHM/Operations.xaml
deleted file mode 100644
index 36ee16a..0000000
--- a/Sources/IHM/Operations.xaml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Sources/IHM/Operations.xaml.cs b/Sources/IHM/Operations.xaml.cs
deleted file mode 100644
index dd1c8e6..0000000
--- a/Sources/IHM/Operations.xaml.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-namespace IHM;
-
-public partial class Operations : ContentPage
-{
- public Operations()
- {
- InitializeComponent();
- }
-}
\ No newline at end of file
diff --git a/Sources/IHM/Planification.xaml b/Sources/IHM/Planification.xaml
deleted file mode 100644
index 4c94860..0000000
--- a/Sources/IHM/Planification.xaml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Sources/IHM/Planification.xaml.cs b/Sources/IHM/Planification.xaml.cs
deleted file mode 100644
index 0b63edf..0000000
--- a/Sources/IHM/Planification.xaml.cs
+++ /dev/null
@@ -1,9 +0,0 @@
-namespace IHM;
-
-public partial class Planification : ContentPage
-{
- public Planification()
- {
- InitializeComponent();
- }
-}
\ No newline at end of file
diff --git a/Sources/IHM/Settings.xaml b/Sources/IHM/Settings.xaml
deleted file mode 100644
index a7ab581..0000000
--- a/Sources/IHM/Settings.xaml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/Sources/IHM/Settings.xaml.cs b/Sources/IHM/Settings.xaml.cs
deleted file mode 100644
index 52f390b..0000000
--- a/Sources/IHM/Settings.xaml.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-namespace IHM;
-using Model;
-public partial class Settings : ContentPage
-{
- public Manager Mgr => (App.Current as App).Manager;
- public Settings()
- {
- InitializeComponent();
- }
- public void deconnexionOnClicked(object sender, EventArgs e)
- {
- Mgr.SelectedInscrit = null;
- NavigateTo();
- }
- private async void NavigateTo()
- {
- await Navigation.PushModalAsync(new MainPage());
- }
-}
\ No newline at end of file