Na most kezd valami kinézni

This commit is contained in:
2025-03-03 19:26:25 +01:00
parent 1e9fdf7ea5
commit 62dee24619
7 changed files with 99 additions and 18 deletions
@@ -11,7 +11,7 @@ public partial class CheckPointsPage : ContentPage
{
private readonly IBaseStockService _baseStockService;
private readonly ISyncService _syncService;
private bool _onReceiveing = false;
public CheckPointsPage()
{
@@ -52,7 +52,7 @@ public partial class CheckPointsPage : ContentPage
private async void OnPairItem(CheckPointDTO checkPointDTO)
{
_checkPointDTO = checkPointDTO;
await BeginListening();
await BeginListening();
}
protected override bool OnBackButtonPressed()
{
@@ -93,7 +93,8 @@ public partial class CheckPointsPage : ContentPage
}
async void Current_OnMessageReceived_NFCData(ITagInfo tagInfo)
{
if (_onReceiveing) return;
_onReceiveing = true;
if (tagInfo == null)
{
return;
@@ -105,10 +106,11 @@ public partial class CheckPointsPage : ContentPage
{
_checkPointDTO.Code = serialNumber;
await _baseStockService.UpdateCheckPoint(_checkPointDTO);
//CrossNFC.Current.StopListening();
UnsubscribeEvents();
CrossNFC.Current.StopListening();
await LoadCheckPoints();
}
}
_onReceiveing = false;
}
#endregion