1
0
mirror of https://github.com/proxysu/ProxySU.git synced 2024-11-25 14:46:08 +03:00

添加常见问题标签

This commit is contained in:
ProxySU 2020-11-01 19:34:10 +08:00
parent 927a468222
commit e2c105b148
4 changed files with 63 additions and 0 deletions

View File

@ -724,6 +724,28 @@
</Grid>
</TabItem>
<TabItem Header="{DynamicResource TabItemHeaderCommonError}" Width="110" Height="30">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="70"></ColumnDefinition>
<ColumnDefinition Width="70"></ColumnDefinition>
<ColumnDefinition Width="70"></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="40"></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<Button x:Name="ButtonWebBrowserHomePageCommonError" Content="{DynamicResource ButtonWebBrowserHomePage}" Grid.Column="0" Grid.Row="0" Margin="5" Click="ButtonWebBrowserHomePageCommonError_Click"></Button>
<Button x:Name="ButtonWebBrowserForwardCommonError" Content="{DynamicResource ButtonWebBrowserForward}" Grid.Column="2" Grid.Row="0" Margin="5" Click="ButtonWebBrowserForwardCommonError_Click"></Button>
<Button x:Name="ButtonWebBrowserBackCommonError" Content="{DynamicResource ButtonWebBrowserBack}" Grid.Column="1" Grid.Row="0" Margin="5" Click="ButtonWebBrowserBackCommonError_Click"></Button>
<TextBlock Text="{DynamicResource TextBlockWebExplain}" TextWrapping="Wrap" Grid.Column="4" Grid.Row="0" Margin="8"></TextBlock>
<!--<TextBox x:Name="TextBoxWebBrowserProxyUrl" Style="{StaticResource TitleText}" Tag="粘贴被墙的网址到这里点击 GO(下面被墙网址右击==复制快捷方式)" Grid.Column="3" Grid.Row="0" Grid.ColumnSpan="5" Margin="5"></TextBox>
<Button x:Name="ButtonWebBrowserProxyGo" Content="Go" Grid.Column="8" Grid.Row="0" Margin="5" Click="ButtonWebBrowserProxyGo_Click"></Button>-->
<WebBrowser x:Name="WebBrowserCommonError" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="4" Source="https://github.com/proxysu/windows/wiki/CommonError" />
</Grid>
</TabItem>
</TabControl>
</Grid>
</Grid>

View File

@ -7141,6 +7141,46 @@ namespace ProxySU
}
}
#endregion
#region
private void ButtonWebBrowserHomePageCommonError_Click(object sender, RoutedEventArgs e)
{
try
{
WebBrowserCommonError.Source = new Uri("https://github.com/proxysu/windows/wiki/CommonError");
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
private void ButtonWebBrowserBackCommonError_Click(object sender, RoutedEventArgs e)
{
try
{
WebBrowserCommonError.GoBack();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
private void ButtonWebBrowserForwardCommonError_Click(object sender, RoutedEventArgs e)
{
try
{
WebBrowserCommonError.GoForward();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
#endregion
#region

View File

@ -12,6 +12,7 @@
<sys:String x:Key="TabItemHeaderAppDeployment">应用布署</sys:String>
<sys:String x:Key="TabItemHeaderResourceTools">资源工具</sys:String>
<sys:String x:Key="TabItemHeaderFreeWallURL">免翻网址资源</sys:String>
<sys:String x:Key="TabItemHeaderCommonError">常见问题</sys:String>
<sys:String x:Key="TextBlockHostName">主机:</sys:String>
<sys:String x:Key="TextBoxHostNamePrompt">IP或域名(不可为空)</sys:String>
<sys:String x:Key="TextBlockHostPart">端口:</sys:String>

Binary file not shown.