Пример #1
0
        private void CardInserted(object sender, CardInsertedEventArgs e)
        {
            if (!e.Value.HasValue)
            {
                MessageBox.Show("Ошибка контакта с картой. Попробуйте снова.");
                return;
            }

            _smartReader.WriteValue(NewValue);

            synchronizationContext.Post(o => Close(), e.Value.Value);
        }
Пример #2
0
 public bool BindCard(int studentId) => _smartReaderListener.WriteValue(studentId);