示例#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);
 }