public void SetupTimer(int initialShowDelay, int showDuration) { if (_timer != null) { if (_timer.IsEnabled) { _timer.StopAndReset(); } _timer.Tick -= OnTimerTick; _timer.Stopped -= OnTimerStopped; } _timer = new ToolTipTimer(TimeSpan.FromMilliseconds(showDuration), TimeSpan.FromMilliseconds(initialShowDelay)); _timer.Tick += OnTimerTick; _timer.Stopped += OnTimerStopped; }