Added Timer.OnStateChanged event which gets raised each time the timer state changes. The NotifyIconViewModel adds a handler for this event which updates the database via the TimerHistoryItemRepository.