This repository has been archived by the owner on Apr 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3120a03
commit a7cc426
Showing
22 changed files
with
179 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
[Readme](https://github.com/OldGodShen/OGFrp/blob/master/README.md#ogfrp) | ||
|
||
# 有关在Android上使用OGFrp | ||
|
||
## I.引言 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
[Readme](https://github.com/OldGodShen/OGFrp/blob/master/README.md#ogfrp) | ||
|
||
# OGFrp.Linux使用帮助 | ||
|
||
## I.安装 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
[Readme](https://github.com/OldGodShen/OGFrp/blob/master/README.md#ogfrp) | ||
|
||
# OGFrp.Lite使用帮助 | ||
|
||
## I.安装 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<UserControl x:Class="FrpcLaunchMode" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:local="clr-namespace:OGFrp.Main" | ||
mc:Ignorable="d"> | ||
<Grid> | ||
<TextBlock x:Name="lb_flm" HorizontalAlignment="Left" Margin="10,10,0,0" TextWrapping="Wrap" Text="Frpc Launch Mode" VerticalAlignment="Top" Foreground="Black" FontSize="24"/> | ||
<ComboBox x:Name="cb_val" Margin="0,10,10,0" HorizontalAlignment="Right" Width="350" VerticalAlignment="Top"/> | ||
<Grid.Resources> | ||
<Style TargetType="TextBlock"> | ||
<Setter Property="FontSize" Value="20"/> | ||
</Style> | ||
<Style TargetType="ComboBox"> | ||
<Setter Property="FontSize" Value="20"/> | ||
</Style> | ||
</Grid.Resources> | ||
</Grid> | ||
</UserControl> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Public Class FrpcLaunchMode | ||
|
||
Public Assets As UI.AssetModel | ||
Public Config As UI.Config | ||
|
||
Public Sub _init_() | ||
Me.lb_flm.Text = Assets.FrpcLaunchMode | ||
Me.cb_val.Items.Add(Assets.ByProxy) | ||
Me.cb_val.Items.Add(Assets.ByNode) | ||
If Config.FrpcLaunchMode.Val = "node" Then | ||
Me.cb_val.Text = Assets.ByNode | ||
Else | ||
Config.FrpcLaunchMode.Val = "prroxy" | ||
Me.cb_val.Text = Assets.ByProxy | ||
End If | ||
End Sub | ||
|
||
Private Sub cb_val_SelectionChanged(sender As Object, e As SelectionChangedEventArgs) Handles cb_val.SelectionChanged | ||
Select Case Me.cb_val.SelectedItem | ||
Case Assets.ByProxy | ||
Config.FrpcLaunchMode.Val = "prroxy" | ||
Case Assets.ByNode | ||
Config.FrpcLaunchMode.Val = "node" | ||
End Select | ||
Config.WriteConfig() | ||
End Sub | ||
End Class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 15 additions & 11 deletions
26
src/OGFrp.Main/Visual/Window/ServerSelectionWindow.Designer.vb
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.