public VsFocusEventGenerator(IRSEnv env, IMessageBus messageBus, IDateUtils dateUtils, IFocusHelper focusHelper, IThreading threading) : base(env, messageBus, dateUtils, threading) { _focusHelper = focusHelper; _timer = new Timer(); _timer.Elapsed += OnTimerElapsed; _timer.Interval = TimerIntervalSize; _timer.Enabled = true; }
public MouseActivityEventGenerator([NotNull] IRSEnv env, [NotNull] IMessageBus messageBus, [NotNull] IDateUtils dateUtils, [NotNull] IKaVEMouseEvents mouseEvents, IFocusHelper focusHelper, IThreading threading) : base(env, messageBus, dateUtils, threading) { _dateUtils = dateUtils; _focusHelper = focusHelper; mouseEvents.MouseMove += FireMouseActivity; mouseEvents.MouseClick += FireMouseActivity; mouseEvents.MouseWheel += FireMouseActivity; _lastActivity = dateUtils.Now; }