/// <summary> /// Initializes a new instance of the <see cref="HideControlOnInactivityBehavior"/> class. /// </summary> /// <param name="container">The container in which this component should be encapsulated.</param> public HideControlOnInactivityBehavior(IContainer container) { container.EnsureNotNull("container"); container.Add(this); m_refreshTimer = new Timer(container); m_refreshTimer.Interval = TIMER_INTERVAL_MS; m_refreshTimer.Tick += OnRefreshTimer_Tick; m_lastMouseMove = DateTime.UtcNow; m_isHidingActive = true; }