private void VideoDeviceManager_VisitationChecked(object sender, EventArgs e) { Client client = attendanceManager.GetClient(VideoDeviceManager.ScannedResult); if (client == null) { messager.ErrorMessage("Клиент не найдет в базе данных."); return; } try { attendanceManager.AddAttendance(client, AttendancePrice, AttendanceDate); } catch (InvalidOperationException ex) { messager.ErrorMessage(ex.Message); } }