Пример #1
0
        protected override void OnNavigatingFrom(NavigatingCancelEventArgs e)
        {
            nfcListener.DetachReader();
            canReadCards = false;

            base.OnNavigatingFrom(e);
        }
Пример #2
0
 protected override void OnNavigatingFrom(NavigatingCancelEventArgs e)
 {
     try
     {
         nfcListener.DetachReader();
     }
     catch (Exception ex)
     {
         Debug.WriteLine($"NFC: Cannot detach card reader: {ex.Message}");
     }
     base.OnNavigatingFrom(e);
 }