private void OnCardInserted(object sender, CardStatusEventArgs e) { Debug.WriteLine("OnCardInserted"); Trinity.Common.Monitor.SCardMonitor sCardMonitor = Trinity.Common.Monitor.SCardMonitor.Instance; string cardUID = sCardMonitor.GetCardUID(); Debug.WriteLine($"Card UID: {cardUID}"); SmartCardLoginProcess(cardUID); }
private void OnCardInitialized(object sender, CardStatusEventArgs e) { Debug.WriteLine("onCardInitialized"); Trinity.Common.Monitor.SCardMonitor sCardMonitor = Trinity.Common.Monitor.SCardMonitor.Instance; string cardUID = sCardMonitor.GetCardUID(); if (string.IsNullOrEmpty(cardUID)) { return; } Debug.WriteLine($"Card UID: {cardUID}"); SmartCardLoginProcess(cardUID); }