private void ClockTimer_Elapsed(object sender, ElapsedEventArgs e) { Dispatcher.Invoke(() => Clock.Header = DateTime.Now.ToString(_configClient.GetVar("TimeDateFormat"))); }