更新为中文

This commit is contained in:
DevWiki 2024-06-19 14:19:30 +08:00
parent 109449bdab
commit 54b26c3666
2 changed files with 9 additions and 10 deletions

View File

@ -3,7 +3,6 @@
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:HarmonyDevTools"
xmlns:control="clr-namespace:HarmonyDevTools.control"
mc:Ignorable="d" ResizeMode="NoResize"
WindowStartupLocation="CenterScreen"
@ -24,20 +23,20 @@
<RowDefinition Height="48"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Button x:Name="ListBtn" Grid.Row="0" Grid.Column="0" Width="100" Height="36" Content="List Targets" Click="ListBtn_OnClick" />
<Button x:Name="ListBtn" Grid.Row="0" Grid.Column="0" Width="100" Height="36" Content="列举设备" Click="ListBtn_OnClick" />
<TextBox x:Name="TargetTb" Grid.Row="0" Grid.Column="1" Grid.ColumnSpan="2" Margin="10,0,10,0" VerticalContentAlignment="Center"
VerticalAlignment="Center" Height="36" control:TextBoxHelper.Placeholder="请输入connect key"/>
<Button x:Name="ConnectBtn" Grid.Row="0" Grid.Column="3" Width="100" Height="36" Content="Connect Device" Click="ConnectBtn_OnClick" />
<Button x:Name="ConnectBtn" Grid.Row="0" Grid.Column="3" Width="100" Height="36" Content="连接设备" Click="ConnectBtn_OnClick" />
<Button x:Name="KillBtn" Grid.Row="0" Grid.Column="4" Width="100" Height="36" Content="Kill Restart" Click="KillBtn_OnClick" />
<Button x:Name="KillBtn" Grid.Row="0" Grid.Column="4" Width="100" Height="36" Content="重启hdc" Click="KillBtn_OnClick" />
<Button x:Name="CheckServerBtn" Grid.Row="0" Grid.Column="5" Width="100" Height="36" Content="Check Server" Click="CheckServerBtn_OnClick" />
<Button x:Name="CheckServerBtn" Grid.Row="0" Grid.Column="5" Width="100" Height="36" Content="版本信息" Click="CheckServerBtn_OnClick" />
<Border Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="3" BorderBrush="Red" BorderThickness="1" Margin="5,0,5,0">
<StackPanel Orientation="Horizontal" Margin="5,0,5,0">
<Button x:Name="InstallBtn" Width="100" Height="36" Content="Install"
<Button x:Name="InstallBtn" Width="100" Height="36" Content="安装hap"
Click="InstallOnClick" VerticalAlignment="Center" />
<CheckBox x:Name="ReplaceCb" Content="替换安装" IsChecked="False" VerticalAlignment="Center"
@ -56,17 +55,17 @@
<TextBox x:Name="PackageNameTb" control:TextBoxHelper.Placeholder="输入包名" VerticalAlignment="Center" VerticalContentAlignment="Center"
Width="228" Height="36"/>
<Button x:Name="UninstallBtn" Width="100" Height="36" Content="Uninstall" Margin="10,0,0,0"
<Button x:Name="UninstallBtn" Width="100" Height="36" Content="卸载应用" Margin="10,0,0,0"
Click="UninstallBtn_OnClick" VerticalAlignment="Center" />
</StackPanel>
</Border>
<Button x:Name="GetImage" Grid.Row="3" Grid.Column="1" Width="100" Height="36" Content="Get Image" Click="GetImage_OnClick" />
<Button x:Name="GetPhoto" Grid.Row="3" Grid.Column="0" Width="100" Height="36" Content="导出照片" Click="GetPhoto_OnClick" />
<TextBox x:Name="CommandTb" Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="5" Margin="10,0,10,0"
Height="32" VerticalContentAlignment="Center" control:TextBoxHelper.Placeholder="输入命令不需要以 hdc 开头"/>
<Button x:Name="CommandBtn" Content="Execute" Grid.Row="2" Grid.Column="5" Width="100" Height="36" VerticalAlignment="Center"
<Button x:Name="CommandBtn" Content="执行" Grid.Row="2" Grid.Column="5" Width="100" Height="36" VerticalAlignment="Center"
Click="CommandBtn_OnClick" HorizontalAlignment="Center"/>
<TextBox Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="6" x:Name="ResultTb" Margin="10" TextWrapping="Wrap" IsReadOnly="True"

View File

@ -113,7 +113,7 @@ public partial class MainWindow : Window
ResultTb.ScrollToEnd();
}
private void GetImage_OnClick(object sender, RoutedEventArgs e)
private void GetPhoto_OnClick(object sender, RoutedEventArgs e)
{
ExportFile("/storage/media/100/local/files/Photo");
}