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/ribdetails", typeof(RibPage));
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/createcustomer", typeof(CreateCustomerPage));
InitializeComponent();

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

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

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

@ -12,14 +12,14 @@ public partial class ConsultantHomePage : ContentPage
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"
WidthRequest="300" />
It's not functionnal today -->
It's not functionnal today redesign-->
</VerticalStackLayout>

Loading…
Cancel
Save