BEMUTATÓRA kész.

This commit is contained in:
2025-03-24 23:26:25 +01:00
parent ab1de236be
commit 2341b186ef
6 changed files with 83 additions and 33 deletions
@@ -31,6 +31,8 @@ public partial class CheckListPage : ContentPage
InitializeComponent();
_checkListService = MauiProgram.ServiceProvider.GetRequiredService<ICheckListService>();
_userService = MauiProgram.ServiceProvider.GetRequiredService<IUserService>();
NewCommand = new Command<CheckListTemplateHeaderDTO>(OnNewItem);
ContinueCommand = new Command<CheckListHeaderDTO>(OnContinueItem);
}
protected override bool OnBackButtonPressed()
@@ -41,8 +43,7 @@ public partial class CheckListPage : ContentPage
protected override async void OnAppearing()
{
base.OnAppearing();
NewCommand = new Command<CheckListTemplateHeaderDTO>(OnNewItem);
ContinueCommand = new Command<CheckListHeaderDTO>(OnContinueItem);
BindingContext = this;
await LoadCheckListTemplate();
await LoadCheckList();
@@ -55,11 +56,11 @@ public partial class CheckListPage : ContentPage
private async void OnContinueItem(CheckListHeaderDTO checkListHeaderDTO)
{
var taskCompletionSource = new TaskCompletionSource<string>();
await Navigation.PushAsync(new NFCWaiter(taskCompletionSource));
await Navigation.PushModalAsync(new NFCWaiter(taskCompletionSource));
var checkPintCode = await taskCompletionSource.Task;
if (!string.IsNullOrEmpty(checkPintCode))
{
await Navigation.PopAsync();
await Navigation.PopModalAsync();
await Navigation.PushAsync(new CheckListWorkPage(checkListHeaderDTO.Id, checkPintCode));
}