private void CardInserted(object sender, StudentCardEventArgs e) { IsCardHere = true; CardInfoMessage = e.IsSuccess ? _studentMapper.ToModel(e.Student).ItemCaption : $"<{e.ErrorMessage}>"; }
private void CardInserted(object sender, StudentCardEventArgs e) { if (!e.IsSuccess) { MessageBox.Show(e.ErrorMessage, "Ошибка"); return; } var model = _studentMapper.ToModel(e.Student); SetSelectedStudent(model); }