add:配置切换

This commit is contained in:
2026-02-23 12:04:54 +08:00
parent a6bc7552f4
commit ea7233bc1b
4 changed files with 307 additions and 0 deletions
+25
View File
@@ -2873,6 +2873,31 @@
<Button x:Name="BtnRestoreBackup" Content="还原备份" Click="BtnRestoreBackup_Click"
Background="#2563eb" Foreground="White" Padding="12,6" />
</ui:SimpleStackPanel>
<Line HorizontalAlignment="Center" X1="0" Y1="0" X2="400" Y2="0" Stroke="#3f3f46"
StrokeThickness="1" Margin="0,8,0,4" />
<TextBlock Text="配置文件切换与热重载" FontWeight="Bold" Foreground="#fafafa"
FontSize="16" Margin="0,5,0,5" />
<TextBlock TextWrapping="Wrap" Foreground="#a1a1aa"
Text="# 将当前配置另存为命名方案,或切换方案并立即生效(无需重启)" />
<ui:SimpleStackPanel Orientation="Horizontal" HorizontalAlignment="Left" Margin="0,6,0,0">
<TextBlock Foreground="#fafafa" Text="方案:" VerticalAlignment="Center"
FontSize="14" Margin="0,0,8,0" />
<ComboBox x:Name="ComboBoxConfigProfile" Width="180" Margin="0,0,8,0"
SelectionChanged="ComboBoxConfigProfile_SelectionChanged" />
<Button x:Name="BtnApplyConfigProfile" Content="应用配置文件(热重载)" Click="BtnApplyConfigProfile_Click"
Background="#16a34a" Foreground="White" Padding="10,6" Margin="0,0,8,0" />
<Button x:Name="BtnDeleteConfigProfile" Content="删除配置文件" Click="BtnDeleteConfigProfile_Click"
Background="#dc2626" Foreground="White" Padding="10,6" />
</ui:SimpleStackPanel>
<ui:SimpleStackPanel Orientation="Horizontal" HorizontalAlignment="Left" Margin="0,8,0,0">
<TextBlock Foreground="#fafafa" Text="另存为配置文件:" VerticalAlignment="Center"
FontSize="14" Margin="0,0,8,0" />
<TextBox x:Name="TextBoxNewProfileName" Width="160" Margin="0,0,8,0"
VerticalContentAlignment="Center" Padding="6,4"
ToolTip="输入新配置文件名称后点击保存" />
<Button x:Name="BtnSaveAsConfigProfile" Content="另存为配置文件" Click="BtnSaveAsConfigProfile_Click"
Background="#2563eb" Foreground="White" Padding="10,6" />
</ui:SimpleStackPanel>
</ui:SimpleStackPanel>
</GroupBox>
<GroupBox>