diff --git a/src/WorkFlowCheck.MAUI/MainPage.xaml.cs b/src/WorkFlowCheck.MAUI/MainPage.xaml.cs index bff65c6..e9cf025 100644 --- a/src/WorkFlowCheck.MAUI/MainPage.xaml.cs +++ b/src/WorkFlowCheck.MAUI/MainPage.xaml.cs @@ -1,4 +1,5 @@ using WorkFlowCheck.Common.DTO; +using WorkFlowCheck.MAUI.Pages.Media; using WorkFlowCheck.MAUI.Services.Interfaces; namespace WorkFlowCheck.MAUI { @@ -29,20 +30,21 @@ namespace WorkFlowCheck.MAUI } private async void OnButtonGetUser(object sender, EventArgs e) { - var response = await _userService.GetUserAsync(); - if (response != null) - { - try - { - WelcomeLabel.Text = response.Data.FirstName; - } - catch (Exception ex) - { + //var response = await _userService.GetUserAsync(); + //if (response != null) + //{ + // try + // { + // WelcomeLabel.Text = response.Data.FirstName; + // } + // catch (Exception ex) + // { - WelcomeLabel.Text = ex.Message; - } - - } + // WelcomeLabel.Text = ex.Message; + // } + + //} + await Navigation.PushAsync(new CaptureImagePage()); } private async void OnButtonNFCTest(object sender, EventArgs e) { diff --git a/src/WorkFlowCheck.MAUI/MauiProgram.cs b/src/WorkFlowCheck.MAUI/MauiProgram.cs index 263d78c..d6564a3 100644 --- a/src/WorkFlowCheck.MAUI/MauiProgram.cs +++ b/src/WorkFlowCheck.MAUI/MauiProgram.cs @@ -52,6 +52,7 @@ namespace WorkFlowCheck.MAUI builder.UseMauiApp() .UseDevExpressEditors() + .UseMauiCommunityToolkitCamera() .ConfigureFonts(fonts => { fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular"); diff --git a/src/WorkFlowCheck.MAUI/Pages/Media/CaptureImagePage.xaml b/src/WorkFlowCheck.MAUI/Pages/Media/CaptureImagePage.xaml index a62117d..5ade19d 100644 --- a/src/WorkFlowCheck.MAUI/Pages/Media/CaptureImagePage.xaml +++ b/src/WorkFlowCheck.MAUI/Pages/Media/CaptureImagePage.xaml @@ -4,75 +4,16 @@ xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit" x:Class="WorkFlowCheck.MAUI.Pages.Media.CaptureImagePage" Title="CaptureImagePage"> - - + + +