diff --git a/src/Banquale/Banquale/AppShell.xaml.cs b/src/Banquale/Banquale/AppShell.xaml.cs
index 9735096..03e478a 100644
--- a/src/Banquale/Banquale/AppShell.xaml.cs
+++ b/src/Banquale/Banquale/AppShell.xaml.cs
@@ -7,11 +7,15 @@ public partial class AppShell : Shell
{
public AppShell()
{
- InitializeComponent();
Routing.RegisterRoute("balance/categorydetails", typeof(CategoryPage));
Routing.RegisterRoute("balance/newpagedetails", typeof(NewPage1));
Routing.RegisterRoute("menu/requestdetails", typeof(RequestPage));
Routing.RegisterRoute("menu/ribdetails", typeof(RibPage));
Routing.RegisterRoute("menu/transferdetails", typeof(TransferPage));
+ Routing.RegisterRoute("consultant", typeof(ConsultantHomePage));
+ Routing.RegisterRoute("consultant/idpage", typeof(ConsultantIdPage));
+ Routing.RegisterRoute("consultant/createcustomer", typeof(CreateCustomerPage));
+ InitializeComponent();
+
}
}
\ No newline at end of file
diff --git a/src/Banquale/Banquale/Views/ConnectionPage.xaml.cs b/src/Banquale/Banquale/Views/ConnectionPage.xaml.cs
index 5b39502..c532044 100644
--- a/src/Banquale/Banquale/Views/ConnectionPage.xaml.cs
+++ b/src/Banquale/Banquale/Views/ConnectionPage.xaml.cs
@@ -18,6 +18,12 @@ public partial class ConnectionPage : ContentPage
return;
}
+ if(id == "a")
+ {
+ await Navigation.PushModalAsync(new ConsultantHomePage());
+ return;
+ }
+
await Navigation.PushModalAsync(new SwitchAccountPage());
}
diff --git a/src/Banquale/Banquale/Views/ConsultantHomePage.xaml b/src/Banquale/Banquale/Views/ConsultantHomePage.xaml
new file mode 100644
index 0000000..6b0338a
--- /dev/null
+++ b/src/Banquale/Banquale/Views/ConsultantHomePage.xaml
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Banquale/Banquale/Views/ConsultantHomePage.xaml.cs b/src/Banquale/Banquale/Views/ConsultantHomePage.xaml.cs
new file mode 100644
index 0000000..bd19ec2
--- /dev/null
+++ b/src/Banquale/Banquale/Views/ConsultantHomePage.xaml.cs
@@ -0,0 +1,25 @@
+namespace Banquale.Views;
+
+public partial class ConsultantHomePage : ContentPage
+{
+ public ConsultantHomePage()
+ {
+ InitializeComponent();
+ }
+
+ async void DisconnectionClicked(System.Object sender, System.EventArgs e)
+ {
+ await Shell.Current.GoToAsync("///connection");
+ }
+
+ async void Create_Customer_Clicked(System.Object sender, System.EventArgs e)
+ {
+ await Shell.Current.GoToAsync("//createcustomer");
+ }
+
+ async void Id_Clicked(System.Object sender, System.EventArgs e)
+ {
+ await Shell.Current.GoToAsync("//idpage");
+ }
+
+}
\ No newline at end of file
diff --git a/src/Banquale/Banquale/Views/ConsultantIdPage.xaml b/src/Banquale/Banquale/Views/ConsultantIdPage.xaml
new file mode 100644
index 0000000..4650c8f
--- /dev/null
+++ b/src/Banquale/Banquale/Views/ConsultantIdPage.xaml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Banquale/Banquale/Views/ConsultantIdPage.xaml.cs b/src/Banquale/Banquale/Views/ConsultantIdPage.xaml.cs
new file mode 100644
index 0000000..1484126
--- /dev/null
+++ b/src/Banquale/Banquale/Views/ConsultantIdPage.xaml.cs
@@ -0,0 +1,24 @@
+using Banquale.Views.Balance;
+namespace Banquale.Views;
+
+public partial class ConsultantIdPage : ContentPage
+{
+ public ConsultantIdPage()
+ {
+ InitializeComponent();
+ }
+
+ public async void Connection_Clicked(Object sender, EventArgs e)
+ {
+ string id = ident.Text;
+
+ if (string.IsNullOrWhiteSpace(id))
+ {
+ await DisplayAlert("Erreur", "l'id ne doit pas être nulle", "OK");
+ return;
+ }
+
+ await Navigation.PushModalAsync(new BalancePage());
+ }
+
+}
\ No newline at end of file
diff --git a/src/Banquale/Banquale/Views/CreateCustomerPage.xaml b/src/Banquale/Banquale/Views/CreateCustomerPage.xaml
new file mode 100644
index 0000000..352b83e
--- /dev/null
+++ b/src/Banquale/Banquale/Views/CreateCustomerPage.xaml
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Banquale/Banquale/Views/CreateCustomerPage.xaml.cs b/src/Banquale/Banquale/Views/CreateCustomerPage.xaml.cs
new file mode 100644
index 0000000..321c74d
--- /dev/null
+++ b/src/Banquale/Banquale/Views/CreateCustomerPage.xaml.cs
@@ -0,0 +1,9 @@
+namespace Banquale.Views;
+
+public partial class CreateCustomerPage : ContentPage
+{
+ public CreateCustomerPage()
+ {
+ InitializeComponent();
+ }
+}
diff --git a/src/Banquale/Banquale/Views/SwitchAccountPage.xaml b/src/Banquale/Banquale/Views/SwitchAccountPage.xaml
index c2437d8..6b5ba4f 100644
--- a/src/Banquale/Banquale/Views/SwitchAccountPage.xaml
+++ b/src/Banquale/Banquale/Views/SwitchAccountPage.xaml
@@ -21,7 +21,7 @@
HorizontalOptions="Fill"
MinimumHeightRequest="100"
MinimumWidthRequest="375"
- Margin="10,65,0,0"
+ Margin="0,65,0,0"
FontSize="Large"
Clicked="DisconnectionClicked"/>