internal void UpdateAttendance() { try { if (_attendanceDeviceDriver.IsAttendanceLogExits() == false) { OnThrowingMessage("No new data exits on device [" + _attendanceDevice.IPAddress + "]", MessageType.Info); } else { _attendanceDeviceDriver.ProcessLogList(); } << << << < HEAD == == == = _attendanceDeviceDriver.CloseConnection();
internal void UpdateAttendance() { try { if (_attendanceDeviceDriver.IsAttendanceLogExits() == false) { OnThrowingMessage("No new data exits on device [" + _attendanceDevice.IPAddress + "]", MessageType.Info); } else { _attendanceDeviceDriver.ProcessLogList(); } _attendanceDeviceDriver.CloseConnection(); OnThrowingMessage("Attendance sync successfully completed ", MessageType.Success); } catch (Exception e) { OnThrowingMessage("Unable to sync attendance data ", MessageType.Error); //Log.Error(e); } }