void player_Pause(object sender, EventArgs e) { timerSession.Stop(); Application.Current.Dispatcher.Invoke(() => DisplayPlayTime?.Invoke(this, new EventArgs())); }