Skip to content

Commit a092ff1

Browse files
committed
历史记录页面
1 parent 65e497e commit a092ff1

18 files changed

Lines changed: 1361 additions & 36 deletions

.arts/launch.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
// 使用 IntelliSense 找出 C# 调试存在哪些属性
6+
// 将悬停用于现有属性的说明
7+
// 有关详细信息,请访问 https://github.com/dotnet/vscode-csharp/blob/main/debugger-launchjson.md
8+
"name": "SecRandom.Desktop",
9+
"type": "coreclr",
10+
"request": "launch",
11+
"preLaunchTask": "build",
12+
// 如果已更改目标框架,请确保更新程序路径。
13+
"program": "${workspaceFolder}/SecRandom.Desktop/bin/Debug/net9.0/SecRandom.Desktop.dll",
14+
"args": [],
15+
"cwd": "${workspaceFolder}/SecRandom.Desktop/bin/Debug/net9.0/",
16+
// 有关“控制台”字段的详细信息,请参阅 https://aka.ms/VSCode-CS-LaunchJson-Console
17+
"console": "internalConsole",
18+
"stopAtEntry": false
19+
},
20+
{
21+
"name": ".NET Core Attach",
22+
"type": "coreclr",
23+
"request": "attach"
24+
}
25+
]
26+
}

.arts/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"diffEditor.renderSideBySide": false
3+
}

.arts/tasks.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "build",
6+
"command": "dotnet",
7+
"type": "process",
8+
"args": [
9+
"build",
10+
"${workspaceFolder}/SecRandom.Desktop/SecRandom.Desktop.csproj",
11+
"/property:GenerateFullPaths=true",
12+
"/consoleloggerparameters:NoSummary;ForceNoAlign"
13+
],
14+
"problemMatcher": "$msCompile"
15+
},
16+
{
17+
"label": "publish",
18+
"command": "dotnet",
19+
"type": "process",
20+
"args": [
21+
"publish",
22+
"${workspaceFolder}/SecRandom.Desktop/SecRandom.Desktop.csproj",
23+
"/property:GenerateFullPaths=true",
24+
"/consoleloggerparameters:NoSummary;ForceNoAlign"
25+
],
26+
"problemMatcher": "$msCompile"
27+
},
28+
{
29+
"label": "watch",
30+
"command": "dotnet",
31+
"type": "process",
32+
"args": [
33+
"watch",
34+
"run",
35+
"--project",
36+
"${workspaceFolder}/SecRandom.Desktop/SecRandom.Desktop.csproj"
37+
],
38+
"problemMatcher": "$msCompile"
39+
}
40+
]
41+
}

SecRandom/App.axaml.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
using SecRandom.Views;
3232
using SecRandom.Views.MainPages;
3333
using SecRandom.Views.SettingsPages;
34+
using SecRandom.Views.SettingsPages.HistoryManagementSubPages;
35+
using SecRandom.Views.SettingsPages.HistoryManagementSubPages.TableSubPages;
3436
using SecRandom.Views.SettingsPages.ListManagementSubPages;
3537
using SecRandom.Views.SettingsPages.ListManagementSubPages.TablePreview;
3638
using SecRandom.Views.SettingsPages.NotificationSettingsSubPages;
@@ -170,7 +172,12 @@ private static void BuildHost()
170172
services.AddSettingsPage<LinkageSettingsPage>(Langs.Common.Resources.LinkageSettings);
171173
services.AddSettingsPage<VoiceSettingsPage>(Langs.Common.Resources.VoiceSettings);
172174
services.AddSettingsPage<ThemeManagementPage>(Langs.Common.Resources.ThemeManagement);
173-
services.AddSettingsPage<HistoryPage>(Langs.Common.Resources.History);
175+
176+
services.AddGroup(new GroupInfo(Langs.SettingsPages.HistoryPage.Resources.HistoryManagement, "settings.history", "\uE81C"));
177+
services.AddSettingsPage<RollCallHistorySettingsSubPage>(Langs.SettingsPages.HistoryPage.Resources.RollCallHistory);
178+
services.AddKeyedTransient<UserControl, RollCallHistoryTableSubPage>("settings.history.rollCallTable");
179+
services.AddSettingsPage<LotteryHistorySettingsSubPage>(Langs.SettingsPages.HistoryPage.Resources.LotteryHistory);
180+
services.AddKeyedTransient<UserControl, LotteryHistoryTableSubPage>("settings.history.lotteryTable");
174181

175182
services.AddSettingsPage<UpdateSettingsPage>(Langs.Common.Resources.UpdateSettings);
176183
services.AddSettingsPage<AboutPage>(Langs.Common.Resources.About);

0 commit comments

Comments
 (0)