Na most kezd valami kinézni
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user