[feat:] added current time to main-window
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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": [
|
||||
|
||||
Reference in New Issue
Block a user