Example #1
0
        }         // Generate

        public void AddEvent(UiEvent oEvent)
        {
            foreach (UiItemGroups nItemType in UiItemGroupsSequence.Get())
            {
                m_oData[nItemType].AddEvent(oEvent);
            }
        }         // AddEvent
        }         // Generate

        public void AddEvent(UiEvent oEvent)
        {
            if (!m_oRelevantControls.ContainsKey(oEvent.ControlID))
            {
                return;
            }

            m_nCount++;

            StartTime = (!StartTime.HasValue || (oEvent.EventTime < StartTime.Value)) ? oEvent.EventTime : StartTime;
            EndTime   = (!EndTime.HasValue || (oEvent.EventTime > EndTime.Value)) ? oEvent.EventTime : EndTime;
        }         // AddEvent
Example #3
0
        }         // SaveLinkedAccounts

        private void ProcessEvent(DbDataReader oRow)
        {
            var oEvent = new UiEvent(oRow);

            if (VerboseLogging)
            {
                Debug("UiReport: event {0}", oEvent);
            }

            if (!m_oResult.ContainsKey(oEvent.UserID))
            {
                Alert("Event for unknown user {0}", oEvent.UserID);
            }
            else
            {
                m_oResult[oEvent.UserID].AddEvent(oEvent);
            }

            m_oProgress++;
        }         // ProcessEvent