protected void OnStateChanged(SmartCardStateChangedEventArgs e)
 {
     if (SmartCardChanged != null)
     {
         SmartCardChanged(this, e);
     }
 }
Example #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));
                        }
                    }
                }
            }
        }
Example #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));
                        }
					}
				}
			}
		}
Example #4
0
		protected void OnStateChanged(SmartCardStateChangedEventArgs e) {
			if(SmartCardChanged != null)
				SmartCardChanged(this, e);
		}