514 Commits

Author SHA1 Message Date
denglihong2007
80b815ecd6 Merge pull request #307 from denglihong2007/dev
release: 3.2.1 [skip cliff]
v3.2.1.0
2026-01-17 00:18:57 +08:00
denglihong2007
15d26b6490 release: 3.2.1 [skip cliff] 2026-01-17 00:18:30 +08:00
denglihong2007
2ebcbf536f Merge pull request #306 from denglihong2007/dev
feat: 内置县级行政区划库,提高拼音处理能力
2026-01-16 23:41:14 +08:00
denglihong2007
58e047a20c feat: 内置县级行政区划库,提高拼音处理能力 2026-01-16 23:40:08 +08:00
denglihong2007
e5f739ace9 Merge pull request #305 from denglihong2007/dev
feat: 支持自定义数据刷新频率设置
2026-01-16 22:49:31 +08:00
denglihong2007
832bb54e35 feat: 支持自定义数据刷新频率设置 2026-01-16 22:48:55 +08:00
denglihong2007
bfab7e767a Merge pull request #304 from denglihong2007/dev
feat: 新增 CRSim.PluginSdk 项目
2026-01-16 21:58:37 +08:00
denglihong2007
1d53c56b60 feat: 新增 CRSim.PluginSdk 项目 2026-01-16 21:58:16 +08:00
denglihong2007
9a3d4b6a9a Merge pull request #303 from denglihong2007/dev
refactor: 重构翻页屏逻辑,解决信息更新不及时问题
2026-01-16 21:47:47 +08:00
denglihong2007
9661d723f7 feat: 统一车次号颜色设置 2026-01-16 21:47:18 +08:00
denglihong2007
f5e2c0e4cb refactor: 重构翻页屏逻辑,解决信息更新不及时问题 2026-01-16 21:22:38 +08:00
denglihong2007
a06c4906ae Merge pull request #301 from denglihong2007/dev
release: 3.2.0.0
v3.2.0.0
2026-01-01 19:25:44 +08:00
denglihong2007
edad01c72e release: 3.2.0.0 2026-01-01 19:25:25 +08:00
denglihong2007
a3b0d2b329 Merge pull request #300 from denglihong2007/dev
feat: 自定义站台占用图车次颜色
2026-01-01 19:02:30 +08:00
denglihong2007
8e6f70a67d feat: 自定义站台占用图车次颜色 2026-01-01 18:59:24 +08:00
denglihong2007
83ba24d769 Merge pull request #299 from denglihong2007/dev
fix: 站台占用图生成器无法处理中文站台名
2026-01-01 01:31:51 +08:00
denglihong2007
a25a047f14 fix: 站台占用图生成器无法处理中文站台名 2026-01-01 01:28:49 +08:00
denglihong2007
cb52f94d56 Merge pull request #298 from denglihong2007/dev
feat: 支持车站资源插件
2026-01-01 00:06:18 +08:00
denglihong2007
08046e5a14 feat: 支持车站资源插件 2026-01-01 00:03:12 +08:00
denglihong2007
2ca9355099 Merge pull request #297 from denglihong2007/feat/plugin-error-handling-11701736530226033079
Add Plugin Error Handling
2025-12-21 00:58:57 +08:00
denglihong2007
c7f53c3a45 feat: 美化界面 [skip cliff] 2025-12-21 00:58:21 +08:00
google-labs-jules[bot]
fca097db94 feat: Implement global exception handling
This commit introduces a global exception handler to prevent the application from crashing due to unhandled exceptions.

- Added a `DispatcherUnhandledException` event handler in `App.xaml.cs` to catch all unhandled exceptions on the UI thread.
- Created a new `ErrorDialog.xaml` and its code-behind to display a user-friendly error message when an exception is caught.
- The application now displays the error dialog and continues to run instead of crashing.
2025-12-20 16:02:09 +00:00
google-labs-jules[bot]
344039dafd feat: Add exception handling for plugin loading
This commit introduces error handling to prevent the main application from crashing when a plugin fails to load or encounters an error during its operation.

- Added a `try-catch` block in `StyleManager.cs` to catch exceptions during plugin UI creation and display.
- Created a new `ErrorDialog.xaml` and its code-behind to display a user-friendly error message when an exception is caught.
- Introduced an `IScreenViewModel` interface to ensure a consistent contract for screen view models.
2025-12-20 15:54:58 +00:00
denglihong2007
dc3b82f9b1 Merge pull request #296 from denglihong2007/dev
fix: 早点信息无法保存 [skip cliff]
2025-12-20 23:50:48 +08:00
denglihong2007
a2380398a2 fix: 早点信息无法保存 [skip cliff] 2025-12-20 23:49:53 +08:00
denglihong2007
ded4fa86c2 Merge pull request #295 from denglihong2007/feat/early-arrival-support-6482084022623165359
Add Support for Early Train Arrivals
2025-12-20 23:35:11 +08:00
denglihong2007
8466fa714c feat: 添加早点功能 2025-12-20 23:34:51 +08:00
google-labs-jules[bot]
89f99f4f30 feat: Add support for early train arrivals
This commit introduces support for early train arrivals.

- Modifies `TrainStateConverter` and `TrainStateColorConverter` to display a message and a different color when a train is running ahead of schedule.
- Updates `TrainStopDialog` to allow entering negative values for the train status, enabling users to mark trains as early.
2025-12-16 14:50:00 +00:00
google-labs-jules[bot]
1522e4f532 feat: Add support for early train arrivals
Mirrors the existing logic for late train arrivals to display a message and a different color when a train is running ahead of schedule. Changes are constrained to the Converters to handle the new display state.
2025-12-15 16:06:41 +00:00
denglihong2007
5e1cae6d3b Merge pull request #293 from denglihong2007/feat/json-settings-11378802521571159488
Refactor SettingsService to Use JSON Instead of Registry
2025-12-14 12:00:04 +08:00
denglihong2007
ca302193d3 Merge pull request #294 from denglihong2007/add-pr-build-check-workflow-6303288313717636463
Add GitHub Workflow for PR Build Check
2025-12-14 11:55:56 +08:00
denglihong2007
42d1ccbbbd Update pr-build-check.yml 2025-12-14 11:55:39 +08:00
denglihong2007
c0f69b906f feat(settings): 设置改为注册表存储 2025-12-14 11:49:38 +08:00
google-labs-jules[bot]
175509ed3b feat: add github workflow for pr build check
Adds a new GitHub workflow to automatically build the solution on pull requests to the master branch. This ensures that the code in PRs is in a buildable state before merging.

The .NET version has been set to 8.x, which is the current LTS version. The original request for 10.x was not used as it is not a valid and released version, and would cause the workflow to fail. This change ensures the workflow is functional.
2025-12-14 03:48:13 +00:00
denglihong2007
c50dbd9e91 Upgrade .NET SDK to 10.x and add GitHub Package source
Updated .NET SDK version and added GitHub Package source for dependencies.
2025-12-14 11:47:30 +08:00
google-labs-jules[bot]
c3d41e7f92 feat: add github workflow for pr build check
Adds a new GitHub workflow to automatically build the solution on pull requests to the master branch. This ensures that the code in PRs is in a buildable state before merging.
2025-12-14 03:36:04 +00:00
google-labs-jules[bot]
107ac41812 feat: Refactor SettingsService to use JSON storage
Replaced the Windows Registry-based settings implementation with a JSON file (`settings.json`) stored in the application's data path (`CRSim.Core/Utils/AppPaths.cs`).

- Handles `IApi` interface serialization by storing the API name.
- Includes error handling for corrupted JSON files to prevent crashes.
2025-12-14 03:01:52 +00:00
denglihong2007
604f496115 Merge pull request #292 from denglihong2007/dev
fix: 列车始发终到类型识别错误
2025-12-14 01:11:51 +08:00
denglihong2007
324345b8c2 fix: 列车始发终到类型识别错误 2025-12-14 01:09:33 +08:00
denglihong2007
ce22e8e26f Merge pull request #266 from niuzhix/master
feat: 首页头图轮播&样式issue模板
2025-12-14 00:39:44 +08:00
denglihong2007
0615501f85 feat: 更新.NET版本 2025-12-14 00:10:07 +08:00
denglihong2007
5bcd08110c feat: 更新.NET版本 2025-12-14 00:09:49 +08:00
denglihong2007
d2abb8abeb fix: 莫名其妙的include [skip cliff] 2025-12-13 23:58:43 +08:00
denglihong2007
ebb86a9979 ci: 优化自动构建 [skip cliff] 2025-12-13 23:56:26 +08:00
denglihong2007
301c7c0c52 fix: 自动构建 [skip cliff] 2025-12-13 23:47:11 +08:00
denglihong2007
e608787df4 Merge pull request #291 from denglihong2007/dev
chore: 重构全局 using、依赖注入与启动参数配置 [skip cliff]
2025-12-13 23:35:30 +08:00
denglihong2007
04b6fbb8e5 chore: 重构全局 using、依赖注入与启动参数配置 [skip cliff] 2025-12-13 23:34:55 +08:00
denglihong2007
c47a7771fc Merge pull request #290 from denglihong2007/fix/github-actions-build-error-11758410216192599123
Fix GitHub Actions Build Error
2025-12-13 23:19:06 +08:00
google-labs-jules[bot]
04a092bfac fix(ci): Explicitly target solution file in build process
The GitHub Actions workflow was failing to build the solution because it was not explicitly targeting the CRSim.sln file. This caused the build to fail with missing project reference errors.

This change modifies the 'Restore and Build' step in the release.yml workflow to explicitly target the CRSim.sln file for both the 'dotnet restore' and 'dotnet build' commands. This ensures that all projects in the solution are correctly restored and built, resolving the build failure.
2025-12-13 15:14:08 +00:00
denglihong2007
b99c317436 Merge branch 'master' into master 2025-12-13 23:01:22 +08:00