diff --git a/Sources/IHM/AppShell.xaml b/Sources/IHM/AppShell.xaml
index 87ab094..64ae218 100644
--- a/Sources/IHM/AppShell.xaml
+++ b/Sources/IHM/AppShell.xaml
@@ -14,7 +14,7 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
-
+
\ No newline at end of file
diff --git a/Sources/IHM/Mobile/Dashboard.xaml.cs b/Sources/IHM/Mobile/Dashboard.xaml.cs
index a5c526e..0081973 100644
--- a/Sources/IHM/Mobile/Dashboard.xaml.cs
+++ b/Sources/IHM/Mobile/Dashboard.xaml.cs
@@ -6,10 +6,13 @@ namespace IHM.Mobile;
public partial class DashBoard : ContentPage
{
public Manager Mgr => (App.Current as App).Manager;
+
+ List operations;
public DashBoard()
{
InitializeComponent();
//Routing.RegisterRoute(nameof(DashBoard), typeof(DashBoard));
+ //
BindingContext = Mgr;
if (Mgr.User == null)
@@ -18,12 +21,21 @@ public partial class DashBoard : ContentPage
}
+ operations = new List();
+ operations.Add(new("Internet", 33.44, DateTime.Now, MethodePayement.CB, TagOperation.Divers, false));
+ operations.Add(new("Course", 45.20, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
+ operations.Add(new("Orange", 50, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
+ operations.Add(new("EDF", 55.80, DateTime.Now, MethodePayement.Virement, TagOperation.Energie, true));
+ operations.Add(new("Spotify", 33.44, DateTime.Now, MethodePayement.CB, TagOperation.Divers, false));
+ operations.Add(new("Garage", 45.20, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
+
/*if (!Mgr.Pers.TestConnexion())
{
loadPage(new ErrorPage());
Debug.WriteLine("cc");
}*/
-
+ DerniereOpe.ItemsSource = operations;
+
}
public async void loadPage(Page p)
diff --git a/Sources/IHM/Mobile/GestionBanques.xaml b/Sources/IHM/Mobile/GestionBanques.xaml
index a049acc..196cd5c 100644
--- a/Sources/IHM/Mobile/GestionBanques.xaml
+++ b/Sources/IHM/Mobile/GestionBanques.xaml
@@ -32,6 +32,7 @@
+
@@ -57,7 +58,7 @@
-
+
diff --git a/Sources/IHM/Mobile/MainPage.xaml.cs b/Sources/IHM/Mobile/MainPage.xaml.cs
index 848cf93..5521080 100644
--- a/Sources/IHM/Mobile/MainPage.xaml.cs
+++ b/Sources/IHM/Mobile/MainPage.xaml.cs
@@ -26,7 +26,9 @@ namespace IHM.Mobile
if (Mgr.CompareHash(await Mgr.getPassword(EntryMail.Text), EntryPassworld.Text))
{
Mgr.createUser(EntryMail.Text);
+
await Navigation.PopModalAsync();
+ Mgr.LoadBanques();
}
else
{
diff --git a/Sources/IHM/Mobile/Operations.xaml b/Sources/IHM/Mobile/Operations.xaml
index 833b44d..120a58a 100644
--- a/Sources/IHM/Mobile/Operations.xaml
+++ b/Sources/IHM/Mobile/Operations.xaml
@@ -2,11 +2,14 @@
+
-
-
+
+
+
+
-
+
@@ -21,20 +24,24 @@
-
-
+
-
+ FontAttributes="Bold"
+ TextColor="OrangeRed"/>
-
-
+
+
+
\ No newline at end of file
diff --git a/Sources/IHM/Mobile/Operations.xaml.cs b/Sources/IHM/Mobile/Operations.xaml.cs
index 8615a00..05adf62 100644
--- a/Sources/IHM/Mobile/Operations.xaml.cs
+++ b/Sources/IHM/Mobile/Operations.xaml.cs
@@ -6,9 +6,37 @@ namespace IHM.Mobile;
public partial class Operations : ContentPage
{
public Manager Mgr => (App.Current as App).Manager;
- public Operations()
+
+ List operations;
+ public Operations()
{
- InitializeComponent();
- BindingContext = Mgr;
+ InitializeComponent();
+ //BindingContext = Mgr;
+
+ operations = new List();
+ operations.Add(new("op", 33.44, DateTime.Now, MethodePayement.CB, TagOperation.Divers, false));
+ operations.Add(new("course", 45.20, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
+ operations.Add(new("Orange", 50, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
+ operations.Add(new("EDF", 55.80, DateTime.Now, MethodePayement.Virement, TagOperation.Energie, true));
+ operations.Add(new("op", 33.44, DateTime.Now, MethodePayement.CB, TagOperation.Divers, false));
+ operations.Add(new("course", 45.20, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
+ operations.Add(new("Orange", 50, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
+ operations.Add(new("EDF", 55.80, DateTime.Now, MethodePayement.Virement, TagOperation.Energie, true));
+ operations.Add(new("op", 33.44, DateTime.Now, MethodePayement.CB, TagOperation.Divers, false));
+ operations.Add(new("course", 45.20, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
+ operations.Add(new("Orange", 50, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
+ operations.Add(new("EDF", 55.80, DateTime.Now, MethodePayement.Virement, TagOperation.Energie, true));
+ operations.Add(new("op", 33.44, DateTime.Now, MethodePayement.CB, TagOperation.Divers, false));
+ operations.Add(new("course", 45.20, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
+ operations.Add(new("Orange", 50, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
+ operations.Add(new("EDF", 55.80, DateTime.Now, MethodePayement.Virement, TagOperation.Energie, true));
+ operations.Add(new("op", 33.44, DateTime.Now, MethodePayement.CB, TagOperation.Divers, false));
+ operations.Add(new("course", 45.20, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
+ operations.Add(new("Orange", 50, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
+ operations.Add(new("EDF", 55.80, DateTime.Now, MethodePayement.Virement, TagOperation.Energie, true));
+
+
+
+ BindingContext = operations;
}
}
\ No newline at end of file
diff --git a/Sources/IHM/Mobile/Planification.xaml b/Sources/IHM/Mobile/Planification.xaml
index f7702a1..d2a1bcf 100644
--- a/Sources/IHM/Mobile/Planification.xaml
+++ b/Sources/IHM/Mobile/Planification.xaml
@@ -2,134 +2,47 @@
-
+ x:Class="IHM.Mobile.Planification">
+
-
-
-
-
-
-
-
-
-
+
+
+
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
\ No newline at end of file
diff --git a/Sources/IHM/Mobile/Planification.xaml.cs b/Sources/IHM/Mobile/Planification.xaml.cs
index ce79890..84fe728 100644
--- a/Sources/IHM/Mobile/Planification.xaml.cs
+++ b/Sources/IHM/Mobile/Planification.xaml.cs
@@ -5,47 +5,25 @@ namespace IHM.Mobile;
public partial class Planification : ContentPage
{
public Manager Mgr => (App.Current as App).Manager;
+ List operations;
public Planification()
{
InitializeComponent();
- BindingContext = Mgr;
+ //BindingContext = Mgr;
//Routing.RegisterRoute(nameof(DashBoard), typeof(DashBoard));
-
- }
- void OnClickedBanque(object sender, EventArgs args)
- {
- Button btn = (Button)sender;
- ImgBanqueActuelle.Text = btn.Text;
- }
+ operations = new List();
+ operations.Add(new("Vulcan Mag", 3.44, DateTime.Now, MethodePayement.CB, TagOperation.Divers, false));
+ operations.Add(new("Apple Music", 45.20, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
+ operations.Add(new("Orange", 50, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
+ operations.Add(new("EDF", 55.80, DateTime.Now, MethodePayement.Virement, TagOperation.Energie, true));
+
- async void OnClickedGestionBanque(object sender, EventArgs args)
- {
- Bouton.BackgroundColor = Color.FromRgb(192, 192, 192);
- await Bouton.TranslateTo(-130, 35, 50);
- await Bouton.ScaleXTo(7.5, 50);
- await Bouton.ScaleYTo(3, 50);
- stackpannel.IsVisible = true;
- BoutonRetour.IsVisible = true;
- ImgBanqueActuelle.IsVisible = true;
- //await Navigation.PushModalAsync(new GestionBanque());
- }
+ Ech.ItemsSource = operations;
- async void OnClickedRetour(object sender, EventArgs args)
- {
- await Bouton.ScaleXTo(1, 50);
- await Bouton.ScaleYTo(1, 50);
- ImgBanqueActuelle.IsVisible = false;
- stackpannel.IsVisible = false;
- await Bouton.TranslateTo(0, 0, 50);
- BoutonRetour.IsVisible = false;
}
- public async void loadInscription()
- {
- await Navigation.PushModalAsync(new MainPage());
- BindingContext = Mgr;
- }
+
}
\ No newline at end of file
diff --git a/Sources/Modele/TagOperation.cs b/Sources/Modele/TagOperation.cs
index 1718c6e..4437b3c 100644
--- a/Sources/Modele/TagOperation.cs
+++ b/Sources/Modele/TagOperation.cs
@@ -21,4 +21,6 @@ namespace Model
Transaction,
Santé
}
+
+
}