change routing

pull/46/head
Antoine PEREDERII 2 years ago
parent deaa284027
commit 0d799f5501

@ -12,7 +12,7 @@ public partial class AppShell : Shell
Routing.RegisterRoute("menu/requestdetails", typeof(RequestPage)); Routing.RegisterRoute("menu/requestdetails", typeof(RequestPage));
Routing.RegisterRoute("menu/ribdetails", typeof(RibPage)); Routing.RegisterRoute("menu/ribdetails", typeof(RibPage));
Routing.RegisterRoute("menu/transferdetails", typeof(TransferPage)); Routing.RegisterRoute("menu/transferdetails", typeof(TransferPage));
Routing.RegisterRoute("consultant", typeof(ConsultantHomePage)); Routing.RegisterRoute("connection/consultant", typeof(ConsultantHomePage));
Routing.RegisterRoute("consultant/idpage", typeof(ConsultantIdPage)); Routing.RegisterRoute("consultant/idpage", typeof(ConsultantIdPage));
Routing.RegisterRoute("consultant/createcustomer", typeof(CreateCustomerPage)); Routing.RegisterRoute("consultant/createcustomer", typeof(CreateCustomerPage));
InitializeComponent(); InitializeComponent();

@ -51,7 +51,7 @@
Text="Solde" Text="Solde"
Margin="0, 0, 50, 0"/> Margin="0, 0, 50, 0"/>
<Label <Label
Text="{Binding CustomersList[0].AccountsList[0].Balance} " Text="{Binding CustomersList[0].AccountsList[0].Balance}"
Grid.Column="1" Grid.Column="1"
Margin="50, 0, 5, 0"/> Margin="50, 0, 5, 0"/>

@ -22,12 +22,12 @@
Grid.Column="0" Grid.Column="0"
MaximumHeightRequest="30"/> MaximumHeightRequest="30"/>
<Label <Label
Text="Depense" Text="{Binding CustomersList[0].AccountsList[0].TransactionsList[0].Date}"
Grid.Column="1" Grid.Column="1"
VerticalOptions="Center" VerticalOptions="Center"
Margin="10, 0, 0, 0"/> Margin="10, 0, 0, 0"/>
<Label <Label
Text="Prix" Text="{Binding CustomersList[0].AccountsList[0].TransactionsList[0].Sum}"
Grid.Column="2" Grid.Column="2"
VerticalOptions="Center" VerticalOptions="Center"
HorizontalOptions="End" HorizontalOptions="End"

@ -15,13 +15,13 @@
MinimumHeightRequest="65" MinimumHeightRequest="65"
FontSize="Large" FontSize="Large"
Margin="0, 10, 0, 10" Margin="0, 10, 0, 10"
Clicked="Create_Customer_Clicked"/> Clicked="Id_Clicked"/>
<Button Text="Creer un client" <Button Text="Creer un client"
MinimumHeightRequest="65" MinimumHeightRequest="65"
FontSize="Large" FontSize="Large"
Margin="0, 10, 0, 10" Margin="0, 10, 0, 10"
Clicked="Id_Clicked"/> Clicked="Create_Customer_Clicked"/>
<Button Text="Déconnexion" <Button Text="Déconnexion"

@ -12,14 +12,14 @@ public partial class ConsultantHomePage : ContentPage
await Shell.Current.GoToAsync("///connection"); await Shell.Current.GoToAsync("///connection");
} }
async void Create_Customer_Clicked(System.Object sender, System.EventArgs e) async void Id_Clicked(System.Object sender, System.EventArgs e)
{ {
await Shell.Current.GoToAsync("//createcustomer"); await Shell.Current.GoToAsync("..");
} }
async void Id_Clicked(System.Object sender, System.EventArgs e) async void Create_Customer_Clicked(System.Object sender, System.EventArgs e)
{ {
await Shell.Current.GoToAsync("//idpage"); await Shell.Current.GoToAsync("///createcustomer");
} }
} }

@ -120,7 +120,7 @@
HeightRequest="150" HeightRequest="150"
WidthRequest="300" /> WidthRequest="300" />
It's not functionnal today --> It's not functionnal today redesign-->
</VerticalStackLayout> </VerticalStackLayout>

Loading…
Cancel
Save