[feat:] added current time to main-window
This commit is contained in:
@@ -17,7 +17,8 @@
|
|||||||
<Button Content="Abgeben" Click="OnSubmitClick" />
|
<Button Content="Abgeben" Click="OnSubmitClick" />
|
||||||
|
|
||||||
</StackPanel>
|
</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="(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" />
|
<Button Content="Dark Mode" Click="OnDarkModeClick" x:Name="BtnTheme" HorizontalAlignment="Right" Margin="0,0,0,0" />
|
||||||
</Grid>
|
</Grid>
|
||||||
@@ -60,7 +61,7 @@
|
|||||||
<Border x:Name="BrdMid" Margin="0,0,0,0">
|
<Border x:Name="BrdMid" Margin="0,0,0,0">
|
||||||
<DockPanel>
|
<DockPanel>
|
||||||
<Button Content="Weitere Aufgabenlösung hinzufügen" DockPanel.Dock="Top" HorizontalAlignment="Center" Margin="10,10,10,0" Click="OnAddTabClick" />
|
<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>
|
</TabControl>
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
|
|||||||
@@ -50,6 +50,13 @@ namespace PLG_Exam
|
|||||||
DatumField.SelectedDate = DateTime.Now;
|
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();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnDarkModeClick(object? sender, RoutedEventArgs e)
|
private void OnDarkModeClick(object? sender, RoutedEventArgs e)
|
||||||
|
|||||||
@@ -90,7 +90,7 @@
|
|||||||
"privateAssets": "all"
|
"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"
|
"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,
|
"version": 2,
|
||||||
"dgSpecHash": "B1yJZlilF1Q=",
|
"dgSpecHash": "vsrCnjoheg8=",
|
||||||
"success": true,
|
"success": true,
|
||||||
"projectFilePath": "/home/fierke/Nextcloud/Documents/source/repos/PLG_Exam/PLG-Exam/PLG-Exam.csproj",
|
"projectFilePath": "/home/fierke/Nextcloud/Documents/source/repos/PLG_Exam/PLG-Exam/PLG-Exam.csproj",
|
||||||
"expectedPackageFiles": [
|
"expectedPackageFiles": [
|
||||||
|
|||||||
Reference in New Issue
Block a user