add consultant page in navigation

pull/46/head
Antoine PEREDERII 2 years ago
parent e7eb5d220f
commit 94f826e3f4

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

@ -2,8 +2,7 @@
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Banquale.Views.ConsultantIdPage" x:Class="Banquale.Views.ConsultantIdPage"
Title="ConsultantIdPage" Title="ConsultantIdPage">
Shell.NavBarIsVisible="False">
<VerticalStackLayout VerticalOptions="Center"> <VerticalStackLayout VerticalOptions="Center">
@ -16,6 +15,7 @@
HorizontalOptions="CenterAndExpand" HorizontalOptions="CenterAndExpand"
HorizontalTextAlignment="Center" HorizontalTextAlignment="Center"
FontSize="Large" FontSize="Large"
Keyboard="Numeric"
x:Name="ident"/> x:Name="ident"/>
</Frame> </Frame>

Loading…
Cancel
Save