-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDifficulty.vb
28 lines (27 loc) · 879 Bytes
/
Difficulty.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
Public Class Difficulty
Private Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles ButtonConfirm.Click
If RadioEasy.Checked Then
Level = 1
ElseIf RadioMedium.Checked Then
Level = 2
ElseIf RadioHard.Checked Then
Level = 3
Else
Level = 4
End If
Hide()
End Sub
Private Sub Form7_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
SetDesktopLocation(
(screenw - Size.Width) \ 2,
(screenh - Size.Height) \ 2
)
Select Case Level
Case 0 : RadioMedium.Checked = 1
Case 1 : RadioEasy.Checked = 1
Case 2 : RadioMedium.Checked = 1
Case 3 : RadioHard.Checked = 1
Case 4 : RadioHell.Checked = 1
End Select
End Sub
End Class