-
Notifications
You must be signed in to change notification settings - Fork 28
/
SelectMode.vb
219 lines (204 loc) · 8.89 KB
/
SelectMode.vb
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
Public Class SelectMode
Public Sub ExpertModeDescription()
description.Text = "Expert Mode lets you have all customizing options at your disposal" & Chr(13) & "Such as custom boot logos, root partition size, installer options" & Chr(13) & "and unlocks."
End Sub
Public Sub SimpleModeDescription()
description.Text = "Simple Mode - Recommended for people that dont know what to add." & Chr(13) & "Simple Mode adds Cydia, afc2, SSH for Apple TV, and other" & Chr(13) & "recommended stuff automatically."
End Sub
Public Sub BBModeDescription()
description.Text = "This mode ONLY preserves the iPhone's baseband. It does not" & Chr(13) & "Jailbreak or Unlock the actual device. All other modes still" & Chr(13) & "do preserve the baseband."
End Sub
Private Sub SimpleMode_MouseLeave(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SimpleModebox.MouseLeave
SimpleModebox.Image = My.Resources.Backing
description.Text = ""
End Sub
Private Sub SimpleMode_MouseEnter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SimpleModebox.MouseEnter
SimpleModebox.Image = My.Resources.redhover
Call SimpleModeDescription()
End Sub
Private Sub SimpleMode_x2click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SimpleModetxt.DoubleClick
UserMode = "Simple"
InstallMS = True
ebuilding.MdiParent = MDIMain
ebuilding.Show()
Me.Dispose()
End Sub
Private Sub SimpleModepic_x2click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SimpleModebox.DoubleClick
UserMode = "Simple"
InstallMS = True
ebuilding.MdiParent = MDIMain
ebuilding.Show()
Me.Dispose()
End Sub
Private Sub SimpleMode_Selected(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SimpleModebox.Click
SimpleModeSelected()
End Sub
Private Sub SimpleModetxt_MouseEnter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SimpleModetxt.MouseEnter
SimpleModebox.Image = My.Resources.redhover
Call SimpleModeDescription()
End Sub
Private Sub SimpleModetxt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SimpleModetxt.Click
SimpleModeSelected()
End Sub
Private Sub SimpleModetxt_x2Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SimpleModetxt.DoubleClick
Expert.MdiParent = MDIMain
UserMode = "Simple"
InstallMS = True
Expert.Show()
Me.Dispose()
End Sub
Public Sub SimpleModeSelected()
echeck.Visible = False
bbcheck.Visible = False
scheck.Visible = True
Label2.Text = "Click the blue arrow to continue"
arrow.Image = My.Resources.Arrow
arrow.Enabled = True
UserMode = "Simple"
InstallMS = True
JustPreserveBaseband = False
End Sub
Private Sub ExpertMode_MouseLeave(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExpertModebox.MouseLeave
ExpertModebox.Image = My.Resources.Backing
description.Text = ""
End Sub
Private Sub ExpertMode_MouseEnter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExpertModebox.MouseEnter
ExpertModebox.Image = My.Resources.redhover
Call ExpertModeDescription()
End Sub
Private Sub ExpertModetxt_MouseEnter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExpertModetxt.MouseEnter
ExpertModebox.Image = My.Resources.redhover
Call ExpertModeDescription()
End Sub
Private Sub ExpertMode_Selected(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExpertModebox.Click
ExpertModeSelected()
End Sub
Private Sub ExpertModetxt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExpertModetxt.Click
ExpertModeSelected()
End Sub
Private Sub ExpertModetxt_x2Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExpertModetxt.DoubleClick
Expert.MdiParent = MDIMain
UserMode = "Expert"
InstallMS = True
Expert.Show()
Me.Dispose()
End Sub
Private Sub ExpertMode_x2click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExpertModebox.DoubleClick
Expert.MdiParent = MDIMain
UserMode = "Expert"
InstallMS = True
Expert.Show()
Me.Dispose()
End Sub
Public Sub ExpertModeSelected()
scheck.Visible = False
bbcheck.Visible = False
echeck.Visible = True
Label2.Text = "Click the blue arrow to continue"
arrow.Image = My.Resources.Arrow
arrow.Enabled = True
UserMode = "Expert"
InstallMS = True
JustPreserveBaseband = False
End Sub
Public Sub BBModeSelected()
scheck.Visible = False
bbcheck.Visible = True
echeck.Visible = False
Label2.Text = "Click the blue arrow to continue"
arrow.Image = My.Resources.Arrow
arrow.Enabled = True
UserMode = "Baseband"
JustPreserveBaseband = True
End Sub
Private Sub BBMode_MouseLeave(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bbmbox.MouseLeave
bbmbox.Image = My.Resources.Backing
description.Text = ""
End Sub
Private Sub BBMode_MouseEnter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bbmbox.MouseEnter
bbmbox.Image = My.Resources.redhover
Call BBModeDescription()
End Sub
Private Sub bbmodetxt_MouseEnter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BBmodetxt.MouseEnter
bbmbox.Image = My.Resources.redhover
Call BBModeDescription()
End Sub
Private Sub bbmbox_x2Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bbmbox.DoubleClick
UserMode = "Baseband"
InstallMS = True
ebuilding.MdiParent = MDIMain
ebuilding.Show()
Me.Dispose()
End Sub
Private Sub BBmodetxt_x2Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BBmodetxt.DoubleClick
UserMode = "Baseband"
InstallMS = True
ebuilding.MdiParent = MDIMain
ebuilding.Show()
Me.Dispose()
End Sub
Private Sub bbmbox_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bbmbox.Click
BBModeSelected()
End Sub
Private Sub BBmodetxt_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BBmodetxt.Click
BBModeSelected()
End Sub
Private Sub SelectMode_Hover(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.MouseHover
'This just fixes some GUI bugs.
bbmbox.Image = My.Resources.Backing
SimpleModebox.Image = My.Resources.Backing
ExpertModebox.Image = My.Resources.Backing
End Sub
Private Sub SelectMode_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If iPhoneModel = "iPad" Or ModelVar = "n92ap" Then
HideBBMode()
Exit Sub
End If
If iPhoneModel.Substring(0, 6) = "iPhone" Then
'Do Nothing
Else
HideBBMode()
End If
End Sub
Public Sub HideBBMode()
bbcheck.Visible = False
amsptb.Visible = False
bbmbox.Visible = False
BBmodetxt.Visible = False
bbmicon.Visible = False
End Sub
Private Sub arrow_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles arrow.Click
If echeck.Visible = True Then
UserMode = "Expert"
InstallMS = True
Expert.MdiParent = MDIMain
Expert.Show()
Me.Dispose()
End If
If scheck.Visible = True Then
UserMode = "Simple"
InstallMS = True
ebuilding.MdiParent = MDIMain
ebuilding.Show()
Me.Dispose()
End If
If bbcheck.Visible = True Then
UserMode = "Baseband"
ebuilding.MdiParent = MDIMain
ebuilding.Show()
Me.Dispose()
End If
End Sub
Private Sub arrow_MouseEnter(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles arrow.MouseEnter
arrow.Image = My.Resources.Arrowhilite
End Sub
Private Sub arrow_MouseLeave(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles arrow.MouseLeave
arrow.Image = My.Resources.Arrow
End Sub
Private Sub arrow_MouseDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles arrow.MouseDown
arrow.Image = My.Resources.arrowpress
End Sub
Private Sub arrow_MouseUp(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles arrow.MouseUp
arrow.Image = My.Resources.Arrowhilite
End Sub
End Class