WIn_RustTools/ViewModels
muqing 7deaa65c39 更新引用和事件处理,移除 ButtonViewModel 类
在 `EditorWin.xaml.cs` 中:
- 添加了 `System.Text.Encodings.Web` 和 `System.Text.Json` 的引用。
- 在 `TreeView_AddTabItem` 方法中,添加了对 `title` 为空的检查。
- 将 `UpdateUI` 事件替换为 `SavePointLeft` 事件。
- 将 `KeyDown` 事件替换为 `PreviewKeyDown` 事件。
- 添加了对 `Ctrl + Alt + L` 快捷键的处理,用于格式化 JSON 文本。

在 `RustTools.csproj` 中:
- 更新了多个包的版本,包括 `CommunityToolkit.Mvvm`、`Microsoft.Extensions.Hosting`、`Microsoft.WindowsAppSDK`、`System.Management` 和 `WinUIEx`。
- 移除了 `Microsoft.Windows.CsWinRT` 包的引用。
- 添加了 `CommunityToolkit.WinUI.Controls.Sizers` 包的引用。

在 `ButtonViewModel.cs` 中:
- 移除了 `ButtonViewModel` 类及其内容。

在 `RankingViewModel.cs` 中:
- 在 `RankingList` 为空时,添加了对 `modData` 和 `modData.Data` 为空的检查。
- 更新了 `item.Icon` 的替换逻辑。

在 `UserPage.xaml.cs` 中:
- 在用户登录逻辑中,添加了对 `userSpaceInfo` 为空的检查。
2025-01-24 20:01:29 +08:00
..
CodeDataViewModel.cs 进行项目文件位置优化 2025-01-16 18:40:29 +08:00
CodeTableViewModel.cs 进行项目文件位置优化 2025-01-16 18:40:29 +08:00
ConcernViewModel.cs 进行项目文件位置优化 2025-01-16 18:40:29 +08:00
HomePageViewModel.cs 进行项目文件位置优化 2025-01-16 18:40:29 +08:00
ModuleViewModel.cs 进行项目文件位置优化 2025-01-16 18:40:29 +08:00
RankingViewModel.cs 更新引用和事件处理,移除 ButtonViewModel 类 2025-01-24 20:01:29 +08:00
SettingsViewModel.cs 进行项目文件位置优化 2025-01-16 18:40:29 +08:00
ShellViewModel.cs 进行项目文件位置优化 2025-01-16 18:40:29 +08:00
UserViewModel.cs 进行项目文件位置优化 2025-01-16 18:40:29 +08:00