private void logEvent(EventType eventType, string screenName, string action, long timeUsed)
{
this.addTime();
this.iDeviceService.Log
(
new Event()
{
ApplicationId = applicationId,
DeviceId = deviceId,
EventTypeId = eventType,
EventName = action,
DateCreatedOnDevice = timeWhenUsed,
ScreenName = screenName,
SessionId = sessionId,
Length = timeUsed,
Version = version,
Date = timeWhenUsed.Date,
DateCreated = timeWhenUsed
}
);
}