[feat:] added current time to main-window

This commit is contained in:
Elias Fierke
2025-04-25 14:01:15 +02:00
parent 360600dfff
commit d8d120a838
5 changed files with 13 additions and 5 deletions

View File

@@ -49,6 +49,13 @@ namespace PLG_Exam
if(DatumField.SelectedDate.HasValue == false){
DatumField.SelectedDate = DateTime.Now;
}
var timer = new DispatcherTimer();
timer.Interval = TimeSpan.FromMilliseconds(100);
timer.Tick += (_, __) => {
LblClock.Content = DateTime.Now.ToString("HH:mm:ss");
};
timer.Start();
}