[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

@@ -17,7 +17,8 @@
<Button Content="Abgeben" Click="OnSubmitClick" />
</StackPanel>
<Label x:Name="LblFilename" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,0,0" Content="Ungespeichert *" />
<Label x:Name="LblFilename" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="0,-4,0,0" Content="Ungespeichert *" />
<Label x:Name="LblClock" HorizontalAlignment="Center" FontWeight="Bold" VerticalAlignment="Bottom" Margin="0,0,0,-4" Content="00:00:00" />
<Button Content="(i)" Click="OnInfoClick" x:Name="BtnInfo" HorizontalAlignment="Right" Margin="0,0,35,0" />
<Button Content="Dark Mode" Click="OnDarkModeClick" x:Name="BtnTheme" HorizontalAlignment="Right" Margin="0,0,0,0" />
</Grid>
@@ -60,7 +61,7 @@
<Border x:Name="BrdMid" Margin="0,0,0,0">
<DockPanel>
<Button Content="Weitere Aufgabenlösung hinzufügen" DockPanel.Dock="Top" HorizontalAlignment="Center" Margin="10,10,10,0" Click="OnAddTabClick" />
<TabControl Name="TabView" Margin="10">
<TabControl Name="TabView" Margin="10,0,10,10">
</TabControl>
</DockPanel>

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();
}

View File

@@ -90,7 +90,7 @@
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/lib64/dotnet/sdk/9.0.103/PortableRuntimeIdentifierGraph.json"
"runtimeIdentifierGraphPath": "/usr/lib64/dotnet/sdk/9.0.104/PortableRuntimeIdentifierGraph.json"
}
}
}

View File

@@ -6424,7 +6424,7 @@
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "/usr/lib64/dotnet/sdk/9.0.103/PortableRuntimeIdentifierGraph.json"
"runtimeIdentifierGraphPath": "/usr/lib64/dotnet/sdk/9.0.104/PortableRuntimeIdentifierGraph.json"
}
}
}

View File

@@ -1,6 +1,6 @@
{
"version": 2,
"dgSpecHash": "B1yJZlilF1Q=",
"dgSpecHash": "vsrCnjoheg8=",
"success": true,
"projectFilePath": "/home/fierke/Nextcloud/Documents/source/repos/PLG_Exam/PLG-Exam/PLG-Exam.csproj",
"expectedPackageFiles": [