This repository has been archived by the owner on Feb 27, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathFirstTimeWizard.xaml
101 lines (93 loc) · 5.82 KB
/
FirstTimeWizard.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<Window x:Class="ngrokGUI.FirstTimeWizard"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
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"
mc:Ignorable="d"
Title="FirstTimeWizard" Height="220" Width="310" WindowStartupLocation="CenterScreen" WindowStyle="None">
<Window.Resources>
<DataTemplate x:Key="cmbTemplate">
<WrapPanel Margin="0 5 0 5" >
<Image Stretch="Fill" Source="{Binding Flag}" HorizontalAlignment="Left" Margin="0,0,15,0"/>
<Label Content="{Binding Country}" VerticalAlignment="Center" HorizontalAlignment="Center" />
</WrapPanel>
</DataTemplate>
</Window.Resources>
<Grid Margin="10">
<TabControl Name="tabcl">
<TabItem Header="Download">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="98*" />
<RowDefinition Height="19*" />
<RowDefinition Height="10*" />
<RowDefinition Height="18*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="27*" />
<ColumnDefinition Width="15*" />
<ColumnDefinition Width="168*"/>
<ColumnDefinition Width="16*" />
<ColumnDefinition Width="27*" />
<ColumnDefinition Width="27*" />
</Grid.ColumnDefinitions>
<TextBlock Name="txtbkDownloadInstruction" Grid.Column="1" Grid.Row="0" Grid.ColumnSpan="4" TextWrapping="WrapWithOverflow" Grid.RowSpan="2" FontSize="14">
<Bold >Welcome to the First Time Wizard!</Bold> <LineBreak /> When you start the download process, please wait while it downloads ngrok.
</TextBlock>
<ProgressBar Name="pbprogress" Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="4" Minimum="0" Maximum="100" />
<Button Name="btnDownload" Grid.Row="3" Grid.Column="3" Grid.ColumnSpan="3" Content="Download" Click="BtnDownload_OnClick" />
</Grid>
</TabItem>
<TabItem Header="Datacenter">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="32*" />
<RowDefinition Height="82*" />
<RowDefinition Height="25*" />
<RowDefinition Height="12*" />
<RowDefinition Height="21*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="27*" />
<ColumnDefinition Width="15*" />
<ColumnDefinition Width="19*" />
<ColumnDefinition Width="137*"/>
<ColumnDefinition Width="16*" />
<ColumnDefinition Width="16*" />
<ColumnDefinition Width="27*" />
<ColumnDefinition Width="27*" />
</Grid.ColumnDefinitions>
<Label Grid.Column="3" Grid.Row="0" HorizontalAlignment="Left" FontSize="15" Width="145" Grid.ColumnSpan="3" >Select closest region</Label>
<ComboBox Grid.Row="1" Grid.Column="3" Name="cmbTunnelExit" ItemTemplate="{StaticResource cmbTemplate}" />
<Button Name="btnSelectDataCenter" Grid.Row="4" Grid.Column="5" Grid.ColumnSpan="3" Content="Next" Click="BtnSelectDataCenter_OnClick" />
</Grid>
</TabItem>
<TabItem Header="Auth">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="70*" />
<RowDefinition Height="19*" />
<RowDefinition Height="19*" />
<RowDefinition Height="21*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="27*" />
<ColumnDefinition Width="15*" />
<ColumnDefinition Width="168*"/>
<ColumnDefinition Width="16*" />
<ColumnDefinition Width="27*" />
<ColumnDefinition Width="27*" />
</Grid.ColumnDefinitions>
<TextBlock Name="txtbkAuthInstruction" Grid.Column="1" Grid.Row="0" Grid.ColumnSpan="4" TextWrapping="WrapWithOverflow" Grid.RowSpan="2" FontSize="14">
<Bold >Please register</Bold> <LineBreak />Please go to <Hyperlink NavigateUri="https://ngrok.com/"> ngrok.com </Hyperlink> and find your Auth token. Paste it into the textbox below and click Done.
</TextBlock>
<TextBlock Name="txtbkAuthToken" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2">Token:</TextBlock>
<TextBox Name="txtbxAuthToken" Grid.Row="1" Grid.Column="2" Grid.ColumnSpan="4" TextChanged="TxtbxAuthToken_OnTextChanged" />
<TextBlock Name="txtbPaid" Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="3">Do you have a paid Ngrok account ?:</TextBlock>
<CheckBox Grid.Row="2" Grid.Column="3" Grid.ColumnSpan="2" Name="cbxPaidAccount" VerticalAlignment="Center" HorizontalAlignment="Center" IsEnabled="False"></CheckBox>
<Button Name="btnAuth" Grid.Row="3" Grid.Column="3" Grid.ColumnSpan="3" Content="Done" Click="BtnAuth_OnClick" />
</Grid>
</TabItem>
</TabControl>
</Grid>
</Window>