Ejemplo n.º 1
0
 protected void OnStateChanged(SmartCardStateChangedEventArgs e)
 {
     if (SmartCardChanged != null)
     {
         SmartCardChanged(this, e);
     }
 }
Ejemplo n.º 2
0
        void OnSmartCardChanged(object sender, SmartCardStateChangedEventArgs e)
        {
            // If nobody is listening to us, we don't need to do any effort to talk.
            if (PatientCardInserted == null)
            {
                return;
            }

            if (e.State == SmartCardState.Inserted)
            {
                foreach (SmartCardService service in smartCardServices)
                {
                    if (service.IsSupported(e.Atr))
                    {
                        Patient patient = service.GetPatientInfo(e.Reader);

                        // The event may be unhooked from
                        if (PatientCardInserted != null)
                        {
                            PatientCardInserted(this, new PatientCardInsertedEventArgs(patient));
                        }
                    }
                }
            }
        }
Ejemplo n.º 3
0
		void OnSmartCardChanged(object sender, SmartCardStateChangedEventArgs e) {
            // If nobody is listening to us, we don't need to do any effort to talk.
            if (PatientCardInserted == null)
                return;

			if(e.State == SmartCardState.Inserted) {
				foreach(SmartCardService service in smartCardServices) {
					if(service.IsSupported(e.Atr)){
                        Patient patient = service.GetPatientInfo(e.Reader);

                        // The event may be unhooked from
                        if (PatientCardInserted != null) {
                            PatientCardInserted(this, new PatientCardInsertedEventArgs(patient));
                        }
					}
				}
			}
		}
Ejemplo n.º 4
0
		protected void OnStateChanged(SmartCardStateChangedEventArgs e) {
			if(SmartCardChanged != null)
				SmartCardChanged(this, e);
		}