BEMUTATÓRA kész.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user