From 94f826e3f4ebace9af1a76bfcd139effd4e3d126 Mon Sep 17 00:00:00 2001 From: anperederi Date: Fri, 26 May 2023 17:21:23 +0200 Subject: [PATCH] add consultant page in navigation --- src/Banquale/Banquale/Views/ConsultantHomePage.xaml.cs | 6 ++++-- src/Banquale/Banquale/Views/ConsultantIdPage.xaml | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Banquale/Banquale/Views/ConsultantHomePage.xaml.cs b/src/Banquale/Banquale/Views/ConsultantHomePage.xaml.cs index 3ba69ec..0fabb5e 100644 --- a/src/Banquale/Banquale/Views/ConsultantHomePage.xaml.cs +++ b/src/Banquale/Banquale/Views/ConsultantHomePage.xaml.cs @@ -14,12 +14,14 @@ public partial class ConsultantHomePage : ContentPage 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) { - await Shell.Current.GoToAsync("///createcustomer"); + await Shell.Current.Navigation.PushAsync(new CreateCustomerPage()); + //await Shell.Current.GoToAsync("///createcustomer"); } } \ No newline at end of file diff --git a/src/Banquale/Banquale/Views/ConsultantIdPage.xaml b/src/Banquale/Banquale/Views/ConsultantIdPage.xaml index 4650c8f..3f42e86 100644 --- a/src/Banquale/Banquale/Views/ConsultantIdPage.xaml +++ b/src/Banquale/Banquale/Views/ConsultantIdPage.xaml @@ -2,8 +2,7 @@ + Title="ConsultantIdPage"> @@ -16,6 +15,7 @@ HorizontalOptions="CenterAndExpand" HorizontalTextAlignment="Center" FontSize="Large" + Keyboard="Numeric" x:Name="ident"/>