Files
Better-Seewo/Manager/MainWindow.xaml

231 lines
15 KiB
Plaintext
Raw Normal View History

<Window x:Class="BetterSeewo.Manager.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Better-Seewo 管理工具"
Width="860" Height="560"
MinWidth="720" MinHeight="420"
WindowStyle="None" ResizeMode="CanResize"
AllowsTransparency="True" Background="Transparent"
WindowStartupLocation="CenterScreen"
FontSize="13">
<Border CornerRadius="10" Background="#0F0F1A" BorderBrush="#25FFFFFF" BorderThickness="1">
<Border.Effect>
<DropShadowEffect BlurRadius="20" ShadowDepth="3" Opacity="0.3" Color="Black"/>
</Border.Effect>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="36"/>
<RowDefinition Height="40"/>
<RowDefinition Height="1"/>
<RowDefinition Height="*"/>
<RowDefinition Height="24"/>
</Grid.RowDefinitions>
<Border Grid.Row="0" Background="#1A1A2E" CornerRadius="10,10,0,0">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0" Orientation="Horizontal" Margin="12,0">
<TextBlock Text="✦" FontSize="11" Foreground="#60B0FF" VerticalAlignment="Center"/>
<TextBlock Text=" Better-Seewo Manager" FontSize="12" Foreground="#C0C0D0" VerticalAlignment="Center" Margin="4,0,0,0"/>
</StackPanel>
<StackPanel Grid.Column="1" Orientation="Horizontal">
<Button x:Name="MinBtn" Content="─" Width="26" Height="20"
Background="Transparent" BorderThickness="0"
Foreground="#707090" FontSize="11"
Cursor="Hand" Click="Minimize_Click"/>
<Button x:Name="MaxBtn" Content="□" Width="26" Height="20"
Background="Transparent" BorderThickness="0"
Foreground="#707090" FontSize="11"
Cursor="Hand" Click="Maximize_Click"/>
<Button x:Name="CloseBtn" Content="✕" Width="26" Height="20"
Background="Transparent" BorderThickness="0"
Foreground="#707090" FontSize="11"
Cursor="Hand" Click="Close_Click"/>
</StackPanel>
</Grid>
</Border>
<Border Grid.Row="1" Background="#12121E" Padding="8,0">
<StackPanel Orientation="Horizontal">
<RadioButton x:Name="TabInstall" GroupName="Nav" IsChecked="True"
Content=" 安装管理 " Foreground="#D0D0E0"
Background="#1A1A2E" BorderThickness="0"
Cursor="Hand" Height="28" Padding="14,0"
Checked="TabChanged" FontSize="12"/>
<RadioButton x:Name="TabInk" GroupName="Nav"
Content=" 墨迹管理 " Foreground="#D0D0E0"
Background="#1A1A2E" BorderThickness="0"
Cursor="Hand" Height="28" Padding="14,0"
Checked="TabChanged" FontSize="12"/>
<RadioButton x:Name="TabConvert" GroupName="Nav"
Content=" 文件转换 " Foreground="#D0D0E0"
Background="#1A1A2E" BorderThickness="0"
Cursor="Hand" Height="28" Padding="14,0"
Checked="TabChanged" FontSize="12"/>
<RadioButton x:Name="TabTouch" GroupName="Nav"
Content=" 触摸修复 " Foreground="#D0D0E0"
Background="#1A1A2E" BorderThickness="0"
Cursor="Hand" Height="28" Padding="14,0"
Checked="TabChanged" FontSize="12"/>
<RadioButton x:Name="TabActivate" GroupName="Nav"
Content=" 激活 " Foreground="#D0D0E0"
Background="#1A1A2E" BorderThickness="0"
Cursor="Hand" Height="28" Padding="14,0"
Checked="TabChanged" FontSize="12"/>
</StackPanel>
</Border>
<Rectangle Grid.Row="2" Fill="#252540" Height="1" Opacity="0.5"/>
<ScrollViewer Grid.Row="3" Background="#0D0D18" Padding="20,14"
VerticalScrollBarVisibility="Auto">
<StackPanel>
<!-- Install -->
<StackPanel x:Name="PageInstall" Visibility="Visible">
<TextBlock Text="安装管理" FontSize="18" FontWeight="SemiBold"
Foreground="#60B0FF" Margin="0,0,0,6"/>
<TextBlock x:Name="InstallStatusText" Text="正在检测状态..." FontSize="12"
Foreground="#707090" Margin="0,0,0,14"/>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="12"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Button Grid.Column="0" x:Name="InstallBtn" Content="安装补丁" Width="160" Height="32"
Cursor="Hand" Click="InstallPatch_Click"/>
<Button Grid.Column="2" x:Name="UninstallBtn" Content="卸载补丁" Width="160" Height="32"
Cursor="Hand" Click="UninstallPatch_Click" IsEnabled="False"/>
</Grid>
<TextBlock x:Name="PatchDetailText" FontSize="11" Foreground="#707090"
TextWrapping="Wrap" Margin="0,10,0,0"/>
</StackPanel>
<!-- Ink -->
<StackPanel x:Name="PageInk" Visibility="Collapsed">
<TextBlock Text="墨迹管理" FontSize="18" FontWeight="SemiBold"
Foreground="#60B0FF" Margin="0,0,0,6"/>
<TextBlock Text="保存/打开白板中的墨笔笔迹,支持自动保存" FontSize="12"
Foreground="#707090" Margin="0,0,0,14"/>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="12"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="12"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Button Grid.Column="0" Content="导出墨迹..." Width="120" Height="32" Cursor="Hand" Click="ExportInk_Click"/>
<Button Grid.Column="2" Content="导入墨迹..." Width="120" Height="32" Cursor="Hand" Click="ImportInk_Click"/>
<Button Grid.Column="4" Content="设置..." Width="120" Height="32" Cursor="Hand" Click="InkSettings_Click"/>
</Grid>
<TextBlock x:Name="InkStatus" FontSize="11" Foreground="#707090" Margin="0,8,0,0"/>
<!-- Auto-save settings -->
<Border Background="#1A1A2E" CornerRadius="6" Padding="12" Margin="0,12,0,0"
BorderBrush="#25FFFFFF" BorderThickness="1">
<StackPanel>
<TextBlock Text="自动保存设置" FontSize="13" FontWeight="SemiBold"
Foreground="#D0D0E0" Margin="0,0,0,8"/>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBlock Grid.Row="0" Grid.Column="0" Text="启用" Foreground="#707090" VerticalAlignment="Center"/>
<CheckBox Grid.Row="0" Grid.Column="1" x:Name="AutoSaveEnabled" Foreground="#D0D0E0"
Checked="AutoSave_Changed" Unchecked="AutoSave_Changed"/>
<TextBlock Grid.Row="1" Grid.Column="0" Text="保存间隔" Foreground="#707090" VerticalAlignment="Center"/>
<StackPanel Grid.Row="1" Grid.Column="1" Orientation="Horizontal">
<TextBox x:Name="AutoSaveInterval" Text="5" Width="50" Height="22"
Foreground="#D0D0E0" Background="#0D0D18"
BorderBrush="#25FFFFFF" BorderThickness="1"
TextChanged="AutoSaveInterval_Changed"/>
<TextBlock Text=" 分钟" Foreground="#707090" Margin="4,0,0,0" VerticalAlignment="Center"/>
</StackPanel>
<TextBlock Grid.Row="2" Grid.Column="0" Text="保存目录" Foreground="#707090" VerticalAlignment="Center"/>
<StackPanel Grid.Row="2" Grid.Column="1" Orientation="Horizontal">
<TextBlock x:Name="AutoSavePath" Text="%USERPROFILE%\Documents\Better-Seewo\Ink"
Foreground="#707090" VerticalAlignment="Center"/>
<Button Content="选择..." Width="60" Height="22" Margin="8,0,0,0"
Cursor="Hand" FontSize="11" Click="SelectInkDir_Click"/>
</StackPanel>
</Grid>
</StackPanel>
</Border>
</StackPanel>
<!-- Convert -->
<StackPanel x:Name="PageConvert" Visibility="Collapsed">
<TextBlock Text="文件转换" FontSize="18" FontWeight="SemiBold"
Foreground="#60B0FF" Margin="0,0,0,6"/>
<TextBlock Text="PPT ↔ ENBX 格式互转" FontSize="12"
Foreground="#707090" Margin="0,0,0,14"/>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="12"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Button Grid.Column="0" Content="PPT → ENBX" Width="140" Height="32" Cursor="Hand" Click="ConvertPptx_Click"/>
<Button Grid.Column="2" Content="ENBX → PPT" Width="140" Height="32" Cursor="Hand" Click="ConvertEnbx_Click"/>
</Grid>
<TextBlock x:Name="ConvertStatus" FontSize="11" Foreground="#707090" Margin="0,8,0,0"/>
</StackPanel>
<!-- Touch -->
<StackPanel x:Name="PageTouch" Visibility="Collapsed">
<TextBlock Text="触摸修复" FontSize="18" FontWeight="SemiBold"
Foreground="#60B0FF" Margin="0,0,0,6"/>
<TextBlock Text="修复希沃白板在非希沃硬件上的触摸检测问题" FontSize="12"
Foreground="#707090" Margin="0,0,0,14"/>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="12"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Button Grid.Column="0" Content="检测触摸状态" Width="140" Height="32" Cursor="Hand" Click="CheckTouch_Click"/>
<Button Grid.Column="2" Content="应用修复" Width="140" Height="32" Cursor="Hand" Click="ApplyTouchFix_Click"/>
</Grid>
<TextBlock x:Name="TouchStatus" FontSize="11" Foreground="#707090" Margin="0,8,0,0"/>
</StackPanel>
<!-- Activate -->
<StackPanel x:Name="PageActivate" Visibility="Collapsed">
<TextBlock Text="专业版激活" FontSize="18" FontWeight="SemiBold"
Foreground="#60B0FF" Margin="0,0,0,6"/>
<TextBlock x:Name="ActivationStatusText" Text="当前状态: 社区版" FontSize="12"
Foreground="#707090" Margin="0,0,0,14"/>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="12"/>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="12"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Button Grid.Column="0" Content="输入激活码..." Width="130" Height="32" Cursor="Hand" Click="ActivatePro_Click"/>
<Button Grid.Column="2" Content="打开注册补丁..." Width="130" Height="32" Cursor="Hand" Click="LaunchInstaller_Click"/>
<Button Grid.Column="4" Content="检测激活状态" Width="130" Height="32" Cursor="Hand" Click="CheckActivation_Click"/>
</Grid>
</StackPanel>
</StackPanel>
</ScrollViewer>
<Border Grid.Row="4" Background="#1A1A2E" CornerRadius="0,0,10,10">
<TextBlock Text="雾启工作室 × Macrohard Studio · 雾生万象,启以为光"
FontSize="10" Foreground="#404058"
HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Border>
</Grid>
</Border>
</Window>